Property | Type | Description | |
---|---|---|---|
$single_instance |
Method | Description | |
---|---|---|
add_find_posts_div ( ) | Add the find posts div via a hook so we can relocate it manually | |
ajax_find_posts ( ) | Check to see if we have a post type set and, if so, add the pre_get_posts action to set the queried post type | |
get_instance ( ) : CMB2_Post_Search_field | Creates or returns an instance of this class. | |
has_post_search_text_field ( $fields ) | ||
render_field ( $field, $escaped_value, $object_id, $object_type, $field_type ) | ||
render_js ( $cmb_id, $object_id, $object_type, $cmb ) | ||
set_post_type ( array $query ) | Set the post type via pre_get_posts |
Method | Description | |
---|---|---|
__construct ( ) |
public add_find_posts_div ( ) |
public ajax_find_posts ( ) |
public static get_instance ( ) : CMB2_Post_Search_field | ||
return | CMB2_Post_Search_field | A single instance of this class. |
public render_field ( $field, $escaped_value, $object_id, $object_type, $field_type ) |
public set_post_type ( array $query ) | ||
$query | array | The query instance |