CMB2_Post_Search_field_025::__construct PHP Метод

__construct() публичный Метод

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.
С версии: 0.2.4
public __construct ( )
        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'));
        }
CMB2_Post_Search_field_025