New answers tagged

0

This is an old thread, but in case someone else winds up here: There are js actions triggered when widgets are added or saved. Reasonably called widget-added and widget-updated. Trac ticket: https://core.trac.wordpress.org/ticket/19675 You can use them like so: // On the Widget Actions, run. $( document ).on( { 'widget-added widget-updated': function ( e,...


0

Simple. Put two brackets right after the select name like name="<?php echo $this->get_field_name( 'postCats' ); ?>" will be named as name="<?php echo $this->get_field_name( 'postCats' ); ?>[]" The complete array of options will then be returned as you expect.


Top 50 recent answers are included