[wp-trac] [WordPress Trac] #63382: No hooks to load custom Post Editor
WordPress Trac
noreply at wordpress.org
Thu May 1 19:00:23 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 | Resolution:
Keywords: 2nd-opinion close | Focuses: administration
-------------------------------+------------------------------
Changes (by swissspidy):
* keywords: => 2nd-opinion close
Comment:
> This leads me to believe that the team insists any custom editor be
loaded with JS script.
No, the idea is to require your custom PHP code and then return true in
the filter. See this example:
https://github.com/GoogleForCreators/web-stories-
wp/blob/5ca9ff4043990a3f736ace1b83c28cfc705ad24c/includes/Admin/Editor.php#L234-L258
And the included file:
https://github.com/GoogleForCreators/web-stories-
wp/blob/5ca9ff4043990a3f736ace1b83c28cfc705ad24c/includes/templates/admin
/edit-story.php
As someone who built such a custom editor, the current solution works fine
and I don't see the need to add 3 extra hooks for that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63382#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list