wp_default_editor filter-hookWP 2.5.0

Filters which editor should be displayed by default.

Usage

add_filter( 'wp_default_editor', 'wp_kama_default_editor_filter' );

/**
 * Function for `wp_default_editor` filter-hook.
 * 
 * @param string $r Which editor should be displayed by default. Either 'tinymce', 'html', or 'test'.
 *
 * @return string
 */
function wp_kama_default_editor_filter( $r ){

	// filter...
	return $r;
}
$r(string)
Which editor should be displayed by default. Either 'tinymce', 'html', or 'test'.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

wp_default_editor()
wp_default_editor
wp-includes/general-template.php 3784
return apply_filters( 'wp_default_editor', $r );

Where the hook is used in WordPress

Usage not found.