PHP Class Papi_Admin, papi

Afficher le fichier Open project: wp-papi/papi

Protected Properties

Свойство Type Description
$entry_type Papi_Entry_Type The entry type.
$meta_type string The post type.

Méthodes publiques

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

Méthodes protégées

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

Method Details

__clone() public méthode

Cloning is forbidden.
public __clone ( )

__construct() public méthode

The construct.
public __construct ( )

__wakeup() public méthode

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

admin_body_class() public méthode

Add custom body class when it's a page type.
public admin_body_class ( string $classes ) : string
$classes string
Résultat string

admin_init() public méthode

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

edit_form_after_title() public méthode

Output Papi page type hidden field.

get_entry_type() protected méthode

Get Entry Type instance.
protected get_entry_type ( ) : Papi_Entry_Type | false
Résultat Papi_Entry_Type | false

load_files() protected méthode

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

plugin_row_meta() public méthode

Add docs links to plugin row meta.
public plugin_row_meta ( array $links, string $file ) : array
$links array
$file string
Résultat array

setup_actions() protected méthode

Setup actions.
protected setup_actions ( )

setup_filters() protected méthode

Setup filters.
protected setup_filters ( )

wp_refresh_nonces() public méthode

Check nonce expiration on the New/Edit Post screen and refresh if needed.
public wp_refresh_nonces ( array $response ) : array
$response array
Résultat array

Property Details

$entry_type protected_oe property

The entry type.
protected Papi_Entry_Type $entry_type
Résultat Papi_Entry_Type

$meta_type protected_oe property

The post type.
protected string $meta_type
Résultat string