PHP Class Papi_Attachment_Type, papi

Inheritance: extends Papi_Page_Type
Show file Open project: wp-papi/papi

Public Properties

Property Type Description
$post_type string The post type to register the type with.
$type string The type name.

Public Methods

Method Description
edit_attachment ( array $form_fields, WP_Post $post ) : array Add attachment fields.
get_post_type ( ) : string Get post type.
save_attachment ( array $post ) : array Save attachment post data.
singleton ( ) : boolean Check if the entry type is a singleton.

Protected Methods

Method Description
setup_filters ( ) Setup filters.

Method Details

edit_attachment() public method

Add attachment fields.
public edit_attachment ( array $form_fields, WP_Post $post ) : array
$form_fields array
$post WP_Post
return array

get_post_type() public method

Get post type.
public get_post_type ( ) : string
return string

save_attachment() public method

Save attachment post data.
public save_attachment ( array $post ) : array
$post array
return array

setup_filters() protected method

Setup filters.
protected setup_filters ( )

singleton() public method

Check if the entry type is a singleton.
public singleton ( ) : boolean
return boolean

Property Details

$post_type public property

The post type to register the type with.
public string $post_type
return string

$type public property

The type name.
public string $type
return string