[wp-trac] [WordPress Trac] #33849: Add a page hook to customize.php page
WordPress Trac
noreply at wordpress.org
Mon Apr 18 21:57:10 UTC 2016
#33849: Add a page hook to customize.php page
-------------------------+------------------------------
Reporter: alexvorn2 | Owner:
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 4.4
Severity: normal | Resolution:
Keywords: close | Focuses: ui
-------------------------+------------------------------
Comment (by alexvorn2):
Replying to [comment:10 westonruter]:
> @alexvorn2 I closed it because I thought it was clear how to add new
elements to the page via the example of the Customize Posts plugin. That
plugin adds a TinyMCE editor via the
`customize_controls_print_footer_scripts` action successfully. If it does
not appear for you, then you'll probably need to adjust the CSS to set the
proper `z-index` (which can also be seen in the Customize Posts plugin).
Otherwise, you'll need to use JS to place the element into the required
place in the document.
I would like to hear someone else thoughts, because it seems you just want
to close this ticket for no reason.
Let it be a hook why bother closing this ticket again and again, a page
hook does no harm anybody.
And till now '''I don't understand what you mean to add new HTML elements
with your plugin''', I think a hook add_action( 'customize_admin_page' )
is the only solution for adding elements to customize.php page, if you
mean adding elements with javascript/jQuery code then this idea is not
nice from my point of view.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33849#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list