関数 _wp_customize_include()
2014/12/17
関数 _wp_customize_include()
定義ファイル :/blog/wp-includes/theme.php 4
1 2 3 4 5 6 7 8 9 10 | function _wp_customize_include() { if ( ! ( ( isset( $_REQUEST['wp_customize'] ) && 'on' == $_REQUEST['wp_customize'] ) || ( is_admin() && 'customize.php' == basename( $_SERVER['PHP_SELF'] ) ) ) ) return; require( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); // Init Customize class $GLOBALS['wp_customize'] = new WP_Customize_Manager; } |
関数外 add_aciton
1 | add_action( 'plugins_loaded', '_wp_customize_include' ); |