这就是你要找的吗
add_filter(\'show_admin_bar\', \'__return_true\');
Codex
顺便说一句,wp config中有以下代码。php还可以帮助:
define( \'WP_DEBUG\', true ); // Or false
if ( WP_DEBUG ) {
define( \'WP_DEBUG_LOG\', true ); // writes errors down in wp-content/debug.log
define( \'WP_DEBUG_DISPLAY\', true ); // shows errors on screen output, set false to on write into logfile
@ini_set(\'display_errors\',1); // set to zero to disable displaying it and only writing to logfile
define(\'SAVEQUERIES\', true); // will have a performance impact so disable if not needed
define(\'SCRIPT_DEBUG\', true); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
}