( function( api ) { // Extends our custom "example-1" section. api.sectionConstructor['pro-section'] = api.Section.extend( { // No events for this type of section. attachEvents: function () {}, // Always make the section active. isContextuallyActive: function () { return true; } } ); } )( wp.customize ); jQuery(document).ready(function($) { $('body').on('click', '.flush-it', function(event) { $.ajax ({ url : benevolent_cdata.ajax_url, type : 'post', data : 'action=flush_local_google_fonts', nonce : benevolent_cdata.nonce, success : function(results){ //results can be appended in needed $( '.flush-it' ).val(benevolent_cdata.flushit); }, }); }); });