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.
Source
File: wp-admin/post.php
Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |