l10ni18n(); // Include helper functions. require_once CMB2_DIR . 'includes/CMB2_Base.php'; require_once CMB2_DIR . 'includes/CMB2.php'; require_once CMB2_DIR . 'includes/helper-functions.php'; // Now kick off the class autoloader. spl_autoload_register( 'cmb2_autoload_classes' ); // Kick the whole thing off. require_once( cmb2_dir( 'bootstrap.php' ) ); cmb2_bootstrap(); } /** * Registers CMB2 text domain path * * @since 2.0.0 */ public function l10ni18n() { $loaded = load_plugin_textdomain( 'cmb2', false, '/languages/' ); if ( ! $loaded ) { $loaded = load_muplugin_textdomain( 'cmb2', '/languages/' ); } if ( ! $loaded ) { $loaded = load_theme_textdomain( 'cmb2', get_stylesheet_directory() . '/languages/' ); } if ( ! $loaded ) { $locale = apply_filters( 'plugin_locale', function_exists( 'determine_locale' ) ? determine_locale() : get_locale(), 'cmb2' ); $mofile = dirname( __FILE__ ) . '/languages/cmb2-' . $locale . '.mo'; load_textdomain( 'cmb2', $mofile ); } } } // Make it so... CMB2_Bootstrap_2100_Develop::initiate(); }// End if().