W3cubDocs

/WordPress

apply_filters( ‘replace_editor’, bool $replace, WP_Post $post )

Allows replacement of the editor.

Parameters

$replacebool
Whether to replace the editor. Default false.
$postWP_Post
Post object.

Source

if ( true === apply_filters( 'replace_editor', false, $post ) ) {

Changelog

Version Description
4.9.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/replace_editor