関数 wp_default_editor()
2014/12/25
関数 wp_default_editor()
定義ファイル :/blog/wp-includes/general-template.php 5
1 2 3 4 5 6 7 8 9 | function wp_default_editor() { $r = user_can_richedit() ? 'tinymce' : 'html'; // defaults if ( wp_get_current_user() ) { // look for cookie $ed = get_user_setting('editor', 'tinymce'); $r = ( in_array($ed, array('tinymce', 'html', 'test') ) ) ? $ed : $r; } return apply_filters( 'wp_default_editor', $r ); } |