public function __construct()
{
if (!defined('CMB2_POST_SEARCH_FIELD_LOADED')) {
/**
* A constant you can use to check if CMB2_Post_Search_field is loaded
* for your plugins/themes with CMB2_Post_Search_field dependency.
*
* Can also be used to determine the priority of the hook
* in use for the currently loaded version.
*/
define('CMB2_POST_SEARCH_FIELD_LOADED', self::PRIORITY);
}
// Use the hook system to ensure only the newest version is loaded.
add_action('cmb2_post_search_field_load', array($this, 'include_lib'), self::PRIORITY);
// Use the hook system to ensure only the newest version is loaded.
add_action('after_setup_theme', array($this, 'do_hook'));
}