wordpress / latest / hooks / replace_editor.html

apply_filters( 'replace_editor', bool $replace, WP_Post $post )

Allows replacement of the editor.

Parameters

$replace bool
Whether to replace the editor. Default false.
$post WP_Post
Post object.

Source

File: wp-admin/post.php. View all references

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

Used By

Used By Description

Changelog

Version Description
4.9.0 Introduced.

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