PHP Class Papi_Property_Group, papi

Inheritance: extends Papi_Property_Repeater
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.

Protected Methods

Method Description
get_settings_properties ( ) : array Get settings properties.
prepare_properties ( array $properties ) : array Prepare properties and set right slug and value.

Method Details

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

get_settings_properties() protected method

Get settings properties.
protected get_settings_properties ( ) : array
return array

html() public method

Render property html.
public html ( )

prepare_properties() protected method

Prepare properties and set right slug and value.
protected prepare_properties ( array $properties ) : array
$properties array
return array