PHP Класс Papi_Attachment_Type, papi

Наследование: extends Papi_Page_Type
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$post_type string The post type to register the type with.
$type string The type name.

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
setup_filters ( ) Setup filters.

Описание методов

edit_attachment() публичный Метод

Add attachment fields.
public edit_attachment ( array $form_fields, WP_Post $post ) : array
$form_fields array
$post WP_Post
Результат array

get_post_type() публичный Метод

Get post type.
public get_post_type ( ) : string
Результат string

save_attachment() публичный Метод

Save attachment post data.
public save_attachment ( array $post ) : array
$post array
Результат array

setup_filters() защищенный Метод

Setup filters.
protected setup_filters ( )

singleton() публичный Метод

Check if the entry type is a singleton.
public singleton ( ) : boolean
Результат boolean

Описание свойств

$post_type публичное свойство

The post type to register the type with.
public string $post_type
Результат string

$type публичное свойство

The type name.
public string $type
Результат string