PHP Class Papi_Admin, papi

Show file Open project: wp-papi/papi

Protected Properties

Property Type Description
$entry_type Papi_Entry_Type The entry type.
$meta_type string The post type.

Public Methods

Method 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.

Protected Methods

Method 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 method

Cloning is forbidden.
public __clone ( )

__construct() public method

The construct.
public __construct ( )

__wakeup() public method

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

admin_body_class() public method

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

admin_init() public method

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

edit_form_after_title() public method

Output Papi page type hidden field.

get_entry_type() protected method

Get Entry Type instance.
protected get_entry_type ( ) : Papi_Entry_Type | false
return Papi_Entry_Type | false

load_files() protected method

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

plugin_row_meta() public method

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

setup_actions() protected method

Setup actions.
protected setup_actions ( )

setup_filters() protected method

Setup filters.
protected setup_filters ( )

wp_refresh_nonces() public method

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

Property Details

$entry_type protected property

The entry type.
protected Papi_Entry_Type $entry_type
return Papi_Entry_Type

$meta_type protected property

The post type.
protected string $meta_type
return string