wp_default_editor [ WordPress Function ]
wp_default_editor ( No parameters )
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: wp_default_styles, wp_image_editor, wp_default_scripts, wp_editor, get_default_feed
Find out which editor should be displayed by default.
Works out which of the two editors to display as the current editor for a user.
Source
<?php
function wp_default_editor() {
$r = user_can_richedit() ? 'tinymce' : 'html'; // defaults
if ( $user = 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 ); // filter
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- wp_default_editor Wordpress hook details -- Adam Brown, BYU ...
Detailed information about every action hook and filter used in WordPress. Makes Plugin API easier to use. Lists appearance, file location, and deprecation data ...
adambrown.info - Wordpress Set default editor 'wp_default_editor'
Dec 8, 2010 ... wordpress Set default editor 'wp_default_editor', admin, functions.php, tinymce.
wpsnipp.com - WordPress › Support » Tags — wp_default_editor
Register · WordPress › Support » wp_default_editor. Tag: wp_default_editor Add New » ... Using the wp_default_editor hides the editor toolbar, 1, hilj, 1 year ...
wordpress.org - wp_default_editor() WordPress function reference, arguments and ...
Find out which editor should be displayed by default.
queryposts.com