PHP Class CMB2_Post_Search_field_025

This ensures each version is loaded/checked.
Show file Open project: webdevstudios/cmb2-post-search-field

Public Methods

Method Description
__construct ( ) Starts the version checking process.
do_hook ( ) Fires the cmb2_attached_posts_field_load action hook (from the after_setup_theme hook).
include_lib ( ) A final check if CMB2_Post_Search_field exists before kicking off our CMB2_Post_Search_field loading.

Method Details

__construct() public method

Creates CMB2_POST_SEARCH_FIELD_LOADED definition for early detection by other scripts. Hooks CMB2_Post_Search_field inclusion to the cmb2_post_search_field_load hook on a high priority which decrements (increasing the priority) with each version release.
Since: 0.2.4
public __construct ( )

do_hook() public method

Fires the cmb2_attached_posts_field_load action hook (from the after_setup_theme hook).
Since: 1.2.3
public do_hook ( )

include_lib() public method

CMB2_POST_SEARCH_FIELD_VERSION and CMB2_POST_SEARCH_FIELD_DIR constants are set at this point.
Since: 0.2.4
public include_lib ( )