class WpvMetaboxesGenerator

 Methods

Hook into the releavant actions

__construct(array $config, array $options) 

Parameters

$config

array

metabox display config

$options

array

metabox options list

Auto fill <select> options

get_select_target_config(string $type) : array
Inherited
inherited_from \WpvConfigGenerator::get_select_target_config()

Parameters

$type

string

autofill type

Returns

arrayoptions list

Renders the metabox

render() 

Auto fill <select> options

target_config(string $type) : array
InheritedStatic
inherited_from \WpvConfigGenerator::target_config()

Parameters

$type

string

autofill type

Returns

arrayoptions list

Registers the metabox

create() 

Saves the post metadata

save(int $post_id) : int

Parameters

$post_id

int

current post id

Returns

intcurrent post id

Single options row template

tpl(string $template, array $value) 
Inherited
inherited_from \WpvConfigGenerator::tpl()

Parameters

$template

string

template name

$value

array

options row config

Save the current page config

save_config() 
Inherited
inherited_from \WpvConfigGenerator::save_config()

 Properties

 

$name : string
Inherited
inherited_from \WpvConfigGenerator::$$name
 

$options : array
 

$config : array