PHP Class Papi_Property_Editor, papi

Inheritance: extends Papi_Property
Show file Open project: wp-papi/papi

Public Methods

Method Description
format_value ( mixed $value, string $slug, integer $post_id ) : array Format the value of the property before it's returned to WordPress admin or the site.
get_default_settings ( ) : array Get default settings.
html ( ) Render property html.
mce_buttons ( array $buttons = [] ) : array Filter TinyMCE buttons (Visual tab).

Protected Methods

Method Description
add_mce_buttons ( ) Add filters to filter TinyMCE buttons.
reove_mce_buttons ( ) Remove filters that filter TinyMCE buttons.

Method Details

add_mce_buttons() protected method

Add filters to filter TinyMCE buttons.
protected add_mce_buttons ( )

format_value() public method

Format the value of the property before it's returned to WordPress admin or the site.
public format_value ( mixed $value, string $slug, integer $post_id ) : array
$value mixed
$slug string
$post_id integer
return array

get_default_settings() public method

Get default settings.
public get_default_settings ( ) : array
return array

html() public method

Render property html.
public html ( )

mce_buttons() public method

Filter TinyMCE buttons (Visual tab).
public mce_buttons ( array $buttons = [] ) : array
$buttons array
return array

reove_mce_buttons() protected method

Remove filters that filter TinyMCE buttons.
protected reove_mce_buttons ( )