Get the selected posts IDs to use in bulk edit AJAX call

After searching through WordPress core I found the following on lines 1051 – 1057 of wp-admin/includes/class-wp-posts-list-table.php if ( post_type_supports( $screen->post_type, ‘title’ ) ) : if ( $bulk ) : ?> <div id=”bulk-title-div”> <div id=”bulk-titles”></div> </div> <?php else : // $bulk ?> So, in order for the #bulk-titles element to be part of your admin list … Read more

Get post meta inline edit WordPress

Not sure it’s the best code but I’ve tested something here that works : (function ($) { // copy of the WP inline edit post var wp_inline_edit = inlineEditPost.edit; // override inlineEditPost.edit = function (id) { // WP edit function wp_inline_edit.apply(this, arguments); // get post ID var post_id = 0; if (typeof( id ) === … Read more