PHP Класс Papi_Admin, papi

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$entry_type Papi_Entry_Type The entry type.
$meta_type string The post type.

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

Метод Описание
__clone ( ) Cloning is forbidden.
__construct ( ) The construct.
__wakeup ( ) Unserializing instances of this class is forbidden.
admin_body_class ( string $classes ) : string Add custom body class when it's a page type.
admin_init ( ) Preboot all types and setup the current type if any.
edit_form_after_title ( ) Output Papi page type hidden field.
plugin_row_meta ( array $links, string $file ) : array Add docs links to plugin row meta.
wp_link_query ( array $results ) : array Filter the link query results.
wp_refresh_nonces ( array $response ) : array Check nonce expiration on the New/Edit Post screen and refresh if needed.

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

Метод Описание
get_entry_type ( ) : Papi_Entry_Type | false Get Entry Type instance.
load_files ( ) Load admin files that are not loaded by the autoload.
setup_actions ( ) Setup actions.
setup_filters ( ) Setup filters.

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

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

Cloning is forbidden.
public __clone ( )

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

The construct.
public __construct ( )

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

Unserializing instances of this class is forbidden.
public __wakeup ( )

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

Add custom body class when it's a page type.
public admin_body_class ( string $classes ) : string
$classes string
Результат string

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

Preboot all types and setup the current type if any.
public admin_init ( )

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

Output Papi page type hidden field.

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

Get Entry Type instance.
protected get_entry_type ( ) : Papi_Entry_Type | false
Результат Papi_Entry_Type | false

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

Load admin files that are not loaded by the autoload.
protected load_files ( )

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

Add docs links to plugin row meta.
public plugin_row_meta ( array $links, string $file ) : array
$links array
$file string
Результат array

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

Setup actions.
protected setup_actions ( )

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

Setup filters.
protected setup_filters ( )

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

Check nonce expiration on the New/Edit Post screen and refresh if needed.
public wp_refresh_nonces ( array $response ) : array
$response array
Результат array

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

$entry_type защищенное свойство

The entry type.
protected Papi_Entry_Type $entry_type
Результат Papi_Entry_Type

$meta_type защищенное свойство

The post type.
protected string $meta_type
Результат string