Bulk edit post date in wordpress

Original source : post date Create admin-script.js at your current theme ( this use js folder ) jQuery(document).ready(function($){ $(‘.inline-edit-col-right .inline-edit-col’) .append( ‘<label style=”margin-top: 3em;”><span class=”title”>Date</span>’ + ‘<div class=”timestamp-wrap”><select name=”mm”>’ + ‘<option value=”00″>Month</option>’ + ‘<option value=”01″>01-January</option>’ + ‘<option value=”02″>02-February</option>’ + ‘<option value=”03″>03-March</option>’ + ‘<option value=”04″>04-April</option>’ + ‘<option value=”05″>05-May</option>’ + ‘<option value=”06″>06-June</option>’ + ‘<option value=”07″>07-July</option>’ + ‘<option … Read more

Remove bulk actions based on user role or capabilities

I would do this this way – Just add a new mu plugin or normal plugin: <?php defined( ‘ABSPATH’ ) OR exit; /** Plugin Name: Limit Bulk actions to Editor & Admin */ add_action( ‘wp_loaded’, ‘wpse_53371_remove_bulk_actions’ ); function wpse_53371_remove_bulk_actions() { if ( ! is_admin() ) return; if ( ! current_user_can( ‘delete_others_pages’ ) ) { add_filter( … Read more

How to prevent custom fields from being cleared during a bulk edit?

You can check for a bulk edit by looking at the bulk_edit variable in $_GET or $_POST. Bulk edits are typically GET requests as far as I investigated them. Note that $_REQUEST takes both GET and POST data into account. In wp-admin/edit.php they also do an isset() check for $_REQUEST[‘bulk_edit’]. function save_my_post($post_id) { // Do … Read more