replace_editor WordPress Filter Hook

The replace_editor hook is a great way to override the default WordPress editor with a custom one. This hook is called when the editor is displayed for a post, page, or custom post type. It can be used to replace the editor with a custom one, or to simply add some extra content to the editor.

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.


Top ↑

Source

File: wp-admin/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.