I've noticed that /wp-admin/js/inline-edit-post.js
is used to retrieved the state of input in quick edit mode.
For example the following code :
jQuery(function() {
if ( typeof mpIds !== 'undefined' ) {
jQuery.each( mpIds, function(index, id) {
jQuery("tr#edit-" + id + " .my_class" ).prop({checked: true});
console.log( id );
} );
}
});
Cannot make this work. But when I enter my code in console it does the job so I'm a little bit lost. How would you do to get the same behaviour for a custom input ?
wp_localize_script()
. I send ids.admin_enqueue_scripts
as is should be or maybe I've missed smth ?