PHP Class Carbon_Fields\Field\Sidebar_Field

Inheritance: extends Select_Field
Show file Open project: htmlburger/carbon-fields

Public Methods

Method Description
disable_add_new ( ) Disable adding new sidebars.
exclude_sidebars ( array $sidebars ) Specify sidebars to be excluded.
to_json ( boolean $load ) : array Returns an array that holds the field data, suitable for JSON representation.

Method Details

disable_add_new() public method

Disable adding new sidebars.
public disable_add_new ( )

exclude_sidebars() public method

Specify sidebars to be excluded.
public exclude_sidebars ( array $sidebars )
$sidebars array

to_json() public method

This data will be available in the Underscore template and the Backbone Model.
public to_json ( boolean $load ) : array
$load boolean Should the value be loaded from the database or use the value from the current instance.
return array