WpvMetaboxesGenerator

Extends \WpvConfigGenerator

class WpvMetaboxesGenerator

Methods

Initialize the generator

__construct(string $name, array $options) 
inherited

Arguments

$name

string

$options

array

definitions for the config page

Registers the metabox

create() 

Saves the post metadata

save(int $post_id) : int

Arguments

$post_id

int

current post id

Response

int

current post id

Renders the option page

render() 
inherited

Save the current page config

save_config() 
inherited

Single options row template

tpl(string $template, array $value) 
inherited

Arguments

$template

string

template name

$value

array

options row config

Prints the templates for the Backbone.js-powered parts of our admin

print_templates() 
inherited static

Auto fill <select> options

get_select_target_config(string $type) : array
inherited static

Arguments

$type

string

autofill type

Response

array

options list

Auto fill <select> options

target_config(string $type) : array
inherited static

Arguments

$type

string

autofill type

Response

array

options list

Properties

Metabox display config

config : array
var

Type(s)

array

Options page config

options : array
inherited
var

Type(s)

array

Options page name

name : string
inherited
var

Type(s)

string