Class EPL_METABOX
EPL_METABOX class
Can also be used by extensions to handle all the metabox functionality it adds metabox wrapper & renders metabox fields and finally save it on save_post hook the constructor of the class accepts one or more array of metabox to be rendered the structure of the metabox array should be similar to make it work
Package: EPL\Classes\MetaboxesCustomFields
Copyright: Copyright (c) 2019, Merv Barrett
License: GNU Public License
Since: 2.0
Located at lib/includes/class-epl-metabox.php
Copyright: Copyright (c) 2019, Merv Barrett
License: GNU Public License
Since: 2.0
Located at lib/includes/class-epl-metabox.php
Methods summary
public
|
#
__construct( mixed $epl_meta_boxes, string $prefix = 'epl_', string $text_domain = 'easy-property-listings' )
Constructor |
public
|
#
add_action( string $action, string $function, integer $priority = 10, integer $accepted_args = 1 )
Add Action |
public
|
#
add_filter( string $action, string $function, integer $priority = 10, integer $accepted_args = 1 )
Add Filter |
public
|
|
public
|
#
add_meta_box( string $id = '', string $label = '', string $func = 'inner_meta_box', array $post_type = array(), string $context = 'normal', string $priority = 'default', array $args = null )
Class wrapper for WordPress function add_meta_box |
public
|
|
public
integer
|
#
save_meta_box( integer $post_ID )
Callback function hooked on WordPress save_post hook used to save all the meta fields |
Properties summary
protected
array
|
$epl_meta_boxes
Holds the user submitted metabox array |
|
protected
array
|
$prefix
Prefix used in nonces and other places to make them unique |
|
protected
array
|
$text_domain
Translation domain used to translate string |