[wp-trac] [WordPress Trac] #63382: No hooks to load custom Post Editor

WordPress Trac noreply at wordpress.org
Thu May 1 18:32:29 UTC 2025


#63382: No hooks to load custom Post Editor
----------------------------+-----------------------------
 Reporter:  ignatiusjeroe   |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Editor          |    Version:
 Severity:  minor           |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 We're all familiar with the classic and block Post Editor. In the source
 code with the filter 'replace_editor' we can opt for using a custom Post
 Editor. But on further inspection see wp-admin/post-new.php @ line 70 and
 wp-admin/post.php @ line 182, there are no follow-up action hooks or other
 code that allows for the loading of an custom editor. The script
 (immediately) goes to loading the admin-footer.php if a true is returned
 by the filter 'replace_editor'. This leads me to believe that the team
 insists any custom editor be loaded with JS script. There are action hooks
 in admin-footer.php, but outputting an editor in the footer is not a sound
 idea. The hooks in admin-footer.php are meant for output of css an js
 script.

 My solution is can be seen in attached image.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63382>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list