PHP Class Papi_Attachment_Type, papi

Inheritance: extends Papi_Page_Type
Afficher le fichier Open project: wp-papi/papi

Méthodes publiques

Свойство Type Description
$post_type string The post type to register the type with.
$type string The type name.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
setup_filters ( ) Setup filters.

Method Details

edit_attachment() public méthode

Add attachment fields.
public edit_attachment ( array $form_fields, WP_Post $post ) : array
$form_fields array
$post WP_Post
Résultat array

get_post_type() public méthode

Get post type.
public get_post_type ( ) : string
Résultat string

save_attachment() public méthode

Save attachment post data.
public save_attachment ( array $post ) : array
$post array
Résultat array

setup_filters() protected méthode

Setup filters.
protected setup_filters ( )

singleton() public méthode

Check if the entry type is a singleton.
public singleton ( ) : boolean
Résultat boolean

Property Details

$post_type public_oe property

The post type to register the type with.
public string $post_type
Résultat string

$type public_oe property

The type name.
public string $type
Résultat string