[wp-trac] [WordPress Trac] #41786: Action introduction before button to save customizer settings data.
WordPress Trac
noreply at wordpress.org
Mon Sep 4 08:37:06 UTC 2017
#41786: Action introduction before button to save customizer settings data.
-------------------------+---------------------------------
Reporter: Collizo4sky | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Customize | Version: 3.4
Severity: normal | Resolution: wontfix
Keywords: | Focuses: ui, administration
-------------------------+---------------------------------
Comment (by westonruter):
@Collizo4sky Here is a simple standalone example for what you can do
without adding a new action:
{{{#!php
<?php
add_action( 'customize_controls_print_footer_scripts', function() {
?>
<script>
jQuery( function( $ ) {
$( '#customize-header-actions' ).prepend( $(
'<span>Hello!</span>' ) );
} );
</script>
<?php
} );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41786#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list