WordPress filter hook · part of WordPress core
the_editor
A WordPress core filter that 4 plugins also fire themselves, running on 110+ sites between them.
How to use the_editor
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'the_editor', function( $kul_description ) {
// Change $kul_description here.
return $kul_description;
}, 10, 1 );Argument names come from Kul Maintenance's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
4 plugins that fire the_editor
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Kul Maintenance90+ installs
apply_filters( 'the_editor', $kul_description )view/functions.php:380 -
BuddyPress Wiki Component10+ installs
apply_filters( 'the_editor', $wiki_page->post_content )includes/bp-wiki-ajax.php:372 -
MailBard Newsletters10+ installs
apply_filters( 'the_editor', "<div id='editorcontainer'><textarea rows='$rows'$class cols='40' name='$id' tabindex='$tab_index' id='$id'>%s</textarea></div>\n" )legacy/helpers/forms.php:175 -
ModiusFewer than 10 installs
apply_filters( 'the_editor', "<div id='editorcontainer'><textarea rows='6' cols='40' name='$id' tabindex='4' id='$id'>%s</textarea></div>\n" )modius-manage.php:19
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.