where does my function output from load-* go?

Ok, I’ve solved my problem, though my question (why I need to put die() at the end of my load-* function to let it show) remains unanswered. I couldn’t find any way to use tb_show and at the same time send super global post variables to the destination url. tb_show simply calls a url and … Read more

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

set_post_format called after wp_update_post when using bulk edit?

I was able to solve my problem by calling set_post_format in my save_post callback and making sure to check if its set and not equal to the “no change” option. Not sure if this is the best way to go, but it works. require( plugin_admin_dir . ‘plugin-sync.php’ ); add_action( ‘save_post’, ‘savethepost’, 2000); function savethepost($post_id) { … Read more