Свойство | Тип | Описание | |
---|---|---|---|
$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. |
public edit_attachment ( array $form_fields, WP_Post $post ) : array | ||
$form_fields | array | |
$post | WP_Post | |
Результат | array |
public save_attachment ( array $post ) : array | ||
$post | array | |
Результат | array |
public string $post_type | ||
Результат | string |