WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about replace_editor

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/post-new.php apply_filters 70 /**
* @global string $post_type
* @global object $post_type_object
* @global WP_Post $post Global post object.
*/
wp-admin/post.php apply_filters 182 /**
* Allows replacement of the editor.
*
* @since 4.9.0
*
* @param bool $replace Whether to replace the editor. Default false.
* @param WP_Post $post Post object.
*/
wp-admin/includes/class-wp-screen.php apply_filters 312 /**
* Fetches a screen object.
*
* @since 3.3.0
*
* @global string $hook_suffix
*
* @param string|WP_Screen $hook_name Optional. The hook name (also known as the hook suffix) used to determine the screen.
* Defaults to the current $hook_suffix global.
* @return WP_Screen Screen object.
*/

Hook Parameters

Parameter Type Name Description
bool $replace Whether to replace the editor. Default false.
WP_Post $post Post object.