ビジュアルエディターを非表示
funsctions.phpに上記のコードを追加で、固定ページのエディター切替を
出来ないように設定する。
function disable_visual_editor_in_page(){ global $typenow; if( $typenow == 'page' ){ add_filter('user_can_richedit', 'disable_visual_editor_filter'); } } function disable_visual_editor_filter(){ return false; } add_action( 'load-post.php', 'disable_visual_editor_in_page' ); add_action( 'load-post-new.php', 'disable_visual_editor_in_page' );
自動で挿入される<p>タグを排除
remove_filter('the_content', 'wpautop');
記事を出力する the_content() 関数の前に、
remove_filter(‘the_content’, ‘wpautop’) を追加
プラグイン更新通知を非表示
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );
テーマ更新通知を非表示
remove_action( 'load-update-core.php', 'wp_update_themes' );
add_filter( 'pre_site_transient_update_themes', create_function( '$a', "return null;" ) );
WordPress本体のバージョン更新を非表示
add_filter('pre_site_transient_update_core', create_function('$a', "return null;"));