Open goldenapples opened 6 years ago
Example of js hook in post select ajax data, see discussion in https://github.com/wp-shortcake/shortcake/pull/767#issuecomment-325024495
With this in place, you would filter the data being sent with the ajax request something like
wp.shortcake.hooks.addFilter( 'shortcode_tag.attr.ajax-data', function addParams( response ) { response.date_query = $( date_query_field ).value; return response; } )
and add any new arguments to the return value you want.
Example of js hook in post select ajax data, see discussion in https://github.com/wp-shortcake/shortcake/pull/767#issuecomment-325024495
With this in place, you would filter the data being sent with the ajax request something like
and add any new arguments to the return value you want.