PHP Class Papi_Admin_Meta_Box, papi

Show file Open project: wp-papi/papi

Protected Properties

Property Type Description
$box Papi_Core_Box The core box.

Public Methods

Method Description
__construct ( Papi_Core_Box $box ) The constructor.
meta_box_css_classes ( array $classes ) : string[] Add css classes to meta box.
move_meta_box_after_title ( ) Move meta boxes after title.
render_meta_box ( array $post, array $args ) Render the meta box
setup_meta_box ( ) Setup meta box.

Protected Methods

Method Description
get_post_type ( ) : string Get meta post type.
get_title ( ) : string Get meta box title.
setup_actions ( ) Setup action hooks.

Method Details

__construct() public method

The constructor.
public __construct ( Papi_Core_Box $box )
$box Papi_Core_Box

get_post_type() protected method

Get meta post type.
protected get_post_type ( ) : string
return string

get_title() protected method

Get meta box title.
protected get_title ( ) : string
return string

meta_box_css_classes() public method

Add css classes to meta box.
public meta_box_css_classes ( array $classes ) : string[]
$classes array
return string[]

move_meta_box_after_title() public method

Move meta boxes after title.

render_meta_box() public method

Render the meta box
public render_meta_box ( array $post, array $args )
$post array
$args array

setup_actions() protected method

Setup action hooks.
protected setup_actions ( )

setup_meta_box() public method

Setup meta box.
public setup_meta_box ( )

Property Details

$box protected property

The core box.
protected Papi_Core_Box $box
return Papi_Core_Box