Method |
Description |
|
__construct ( string $title ) |
Create a new post meta fields container |
|
attach ( ) |
Add meta box for each of the container post types |
|
check_setup_settings ( array &$settings = [] ) |
Check if all required container settings have been specified |
|
detach ( ) |
Revert the result of attach() |
|
hide_on_template ( string | array $template_path ) : object |
Hide the container from pages whose template has filename $template_path. |
|
init ( ) |
Create DataStore instance, set post ID to operate with (if such exists). |
|
is_valid_attach ( ) : boolean |
Perform checks whether the container should be attached during the current request |
|
is_valid_save ( integer $post_id ) : boolean |
Perform checks whether the current save() request is valid
Possible errors are triggering save() for autosave requests
or performing post save outside of the post edit page (like Quick Edit) |
|
is_valid_save_conditions ( integer $post_id ) : boolean |
Perform checks whether the current save() request is valid
Possible errors are triggering save() for autosave requests
or performing post save outside of the post edit page (like Quick Edit) |
|
postbox_classes ( $classes ) |
Classes to add to the post meta box |
|
render ( ) |
Output the container markup |
|
save ( integer $post_id ) |
Perform save operation after successful is_valid_save() check. |
|
set_context ( string $context ) |
Sets the meta box container context |
|
set_post_id ( integer $post_id ) |
Set the post ID the container will operate with. |
|
set_priority ( string $priority ) |
Sets the meta box container priority |
|
show_on_category ( string $category_slug ) : object |
Show the container only on posts from the specified category. |
|
show_on_level ( integer $level ) : object |
Show the container only on hierarchical posts of level $level. |
|
show_on_page ( integer | string $page ) : object |
Show the container only on particular page referenced by it's path. |
|
show_on_page_children ( string $parent_page_path ) : object |
Show the container only on pages whose parent is referenced by $parent_page_path. |
|
show_on_post_format ( string | array $post_format ) : object |
Show the container only on posts from the specified format. |
|
show_on_post_type ( string | array $post_types ) : object |
Show the container only on posts from the specified type(s). |
|
show_on_taxonomy_term ( string $term_slug, string $taxonomy_slug ) : object |
Show the container only on posts which have term $term_slug from the $taxonomy_slug taxonomy. |
|
show_on_template ( string | array $template_path ) : object |
Show the container only on pages whose template has filename $template_path. |
|