Class Papi_Admin
Admin class that handle loading of Papi types,
columns and loading of posts.
Methods summary
public
|
|
public
|
#
__clone( )
Cloning is forbidden.
Codecoverageignore
|
public
|
#
__wakeup( )
Unserializing instances of this class is forbidden.
Unserializing instances of this class is forbidden.
Codecoverageignore
|
public
|
#
admin_init( )
Preboot all types and setup the current type if any.
Preboot all types and setup the current type if any.
|
public
string
|
#
admin_body_class( string $classes )
Add custom body class when it's a page type.
Add custom body class when it's a page type.
Parameters
Returns
string
|
public
|
#
edit_form_after_title( )
Output Papi page type hidden field.
Output Papi page type hidden field.
This will only output on a post type page.
|
public
|
|
public
|
|
public
|
#
load_post_new( )
Load post new action
Redirect to right url if no page type is set.
Load post new action
Redirect to right url if no page type is set.
|
public
array
|
#
plugin_row_meta( array $links, string $file )
Add docs links to plugin row meta.
Add docs links to plugin row meta.
Parameters
Returns
array
|
public
boolean
|
#
setup_papi( )
Load right Papi file if it exists.
Load right Papi file if it exists.
Returns
boolean
|
public
array
|
#
wp_link_query( array $results )
Filter the link query results.
Filter the link query results.
Parameters
Returns
array
|
public
array
|
#
wp_refresh_nonces( array $response )
Check nonce expiration on the New/Edit Post screen and refresh if needed.
Check nonce expiration on the New/Edit Post screen and refresh if needed.
Parameters
Returns
array
|