add_filter('debugbarextender_default_settings','my_debug_bar_extender_settings');// enforce debug bar settings
//强制执行调试栏设置
function my_debug_bar_extender_settings( $default_settings ) {
函数my_debug_bar_extender_settings($ default_settings){
$default_settings = array(
$ default_settings =数组(
'enable_profiler' => 1,
'enable_profiler'=> 1,
'enable_variable_lookup' => 1,
'enable_variable_lookup'=> 1,
'track_default_vars' => 0,
'track_default_vars'=> 0,
'add_default_checkpoints' => 1,
'add_default_checkpoints'=> 1
'savequeries_debugmode_enable' => 1,
'savequeries_debugmode_enable'=> 1,
'use_error_log' => 0,
'use_error_log'=> 0,
'allow_url_settings' => 1,
'allow_url_settings'=> 1
'enable_admin_bar_menu' => 1,
'enable_admin_bar_menu'=> 1
);
);
return $default_settings;
返回$ default_settings;
}
}
add_filter( 'debugbarextender_default_checkpoint_actions', 'my_debug_bar_extender_checkpoints' );
add_filter('debugbarextender_default_checkpoint_actions','my_debug_bar_extender_checkpoints');
// initiate some default checkpoints
//启动一些默认检查点
function my_debug_bar_extender_checkpoints( $default_checkpoints ) {
函数my_debug_bar_extender_checkpoints($ default_checkpoints){
$default_checkpoints = array(
$ default_checkpoints =数组(
'muplugins_loaded',
'muplugins_loaded',
'wp_head',
'wp_head',
'wp_footer',
'wp_footer',
'loop_start',
'loop_start',
'loop_end',
'loop_end',
'shutdown',
'关掉',
);
);
return $default_checkpoints;
返回$ default_checkpoints;
}
}