CMB2_Post_Search_field_025::include_lib PHP Method

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 ( )
        public function include_lib()
        {
            if (class_exists('CMB2_Post_Search_field', false)) {
                return;
            }
            if (!defined('CMB2_POST_SEARCH_FIELD_VERSION')) {
                /**
                 * Defines the currently loaded version of CMB2_Post_Search_field.
                 */
                define('CMB2_POST_SEARCH_FIELD_VERSION', self::VERSION);
            }
            if (!defined('CMB2_POST_SEARCH_FIELD_DIR')) {
                /**
                 * Defines the directory of the currently loaded version of CMB2_Post_Search_field.
                 */
                define('CMB2_POST_SEARCH_FIELD_DIR', dirname(__FILE__) . '/');
            }
            // Include and initiate CMB2_Post_Search_field.
            require_once CMB2_POST_SEARCH_FIELD_DIR . 'lib/init.php';
        }
CMB2_Post_Search_field_025