Property | Type | Description | |
---|---|---|---|
$convert_type | string | The convert type. | |
$default_value | array | The default value. |
Method | Description | |
---|---|---|
format_value ( mixed $values, 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. | |
get_sort_option ( integer $post_id ) : string | Get sort option value. | |
get_sort_options ( ) : array | Get sort options for relationship property. | |
html ( ) | Render property html. | |
import_value ( mixed $value, string $slug, integer $post_id ) : mixed | Import value to the property. | |
load_value ( mixed $values, string $slug, integer $post_id ) : mixed | Change value after it's loaded from the database. | |
sort_value ( array $values, string $slug, integer $post_id ) : array | Sort the values. | |
update_value ( mixed $values, string $slug, integer $post_id ) : string | Sort the values on update. |
Method | Description | |
---|---|---|
convert_post_to_item ( WP_Post $post ) : object | Convert WordPress post object to a item object. | |
get_items ( stdClass $settings ) : array | Get items to display from settings. |
protected convert_post_to_item ( WP_Post $post ) : object | ||
$post | WP_Post | |
return | object |
public get_default_settings ( ) : array | ||
return | array |
public get_sort_option ( integer $post_id ) : string | ||
$post_id | integer | |
return | string |
public static get_sort_options ( ) : array | ||
return | array |