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 nothing during a bulk edit
if (isset($_REQUEST['bulk_edit']))
return;
// ...
}
Related Posts:
- Custom bulk action for media gallery items
- Add filter menu to admin list of posts (of custom type) to filter posts by custom field values
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Filter post listing by meta value which is a date
- Adding Custom Field to Taxonomy Input :Panel
- Custom Fields Bulk Edit
- How to show custom field’s value under post/page title in wp-admin
- How to edit multiple post with Custom fields
- Add More Fields to Users Pages (Admin Panel)
- Admin meta Image Path
- Custom Field Create Bulk via SQL Query
- How make a custom search on backend in WordPress without plugin?
- Custom Fields box in the post editor: Replace textareas with input elements
- Client PDF Upload (Catalogue) – Automatically update link to PDF
- Button inside Custom Meta Box triggering the Update Button
- I need a “Choose from existing content” popin
- WordPress Media Uploader custom Javascript not working
- WordPress colorpicker save both hex and RGB
- custom field in admin columns
- Jquery on custom-field backend
- Meta field bulk editing no longer working in WP 6.0 [closed]
- WordPress admin area: select box with 12.000+ options
- Sort columns in the ‘Pages’ dashboard overview
- Link fields in User Admin list
- Save custom post data outside of default post form
- Decouple page name from page title
- display custom field from inner blog in the main homepage of wordpress multisite
- Post selector as Custom Field
- Multiple URLS per post non-ascii
- Add first url to custom field on publish_post
- Use meta_query to get title of associated post
- Limits, not all post are showen when querying for posts by view count
- Display Custom Meta Box Field Only If Value is Present
- Am I overusing custom fields (for adding nearly 5 images and their titles)?
- get_post_meta() retrieves meta from a specific post on pages, not the page currently viewed
- WP Query – Is this correct?
- Advanced Custom Fields WYSIWYG More tag
- How to make custom fields respect paragraph breaks
- How to remove custom fields from the selector?
- What is the proper way to add a required field to a post type? [duplicate]
- modify wordpress custom field value – strip character if exists
- How can I combine this php statement to get the results of multiple variable inputs?
- Access ACF fields within custom preview function?
- Looping inside block return
- Scripts and tags will not save or output from my custom meta box
- Sortable Custom Columns not sorting correct
- Is there a size limit to the value you can save in a custom field?
- Sort posts by clicks on download button
- Using WP Color Picker in Repeatable Fields
- Running wp_postmeta update query does not show the custom fields data in admin section
- How do I save Multiple fields in a meta box?
- How to load script conditionally on custom field in wp_postmeta?
- Can I access Posts of custom-fields via URL?
- Output custom field value
- Showing Custom Fields on Parent Page
- Best way to achieve multiple links in a post title
- Custom Theme Fields in Settings Menu – apply filters to one of those fields?
- plugin-list-category-post custom fields
- How to display data from custom fields I created?
- Get array of posts based on custom field values
- Show Custom Field of Current Page in For Loop
- Custom Field & Gravity Forms [closed]
- How to automatically change a posts status to draft based on custom field
- Redirect DRAFT Posts to a Custom URL (Custom Field) : Currently 404 Page
- How to show ACF fields in Gridbuilder custom block
- multiple meta_query and orderby question
- Why isn’t update_post_meta saving?
- How to make menu country specific?
- SQL query to change the value of a Custom Field
- Display taxonomy loop using custom field data
- Adding more fields to the registration form
- use mysql to replace one custom field value with another custom field value
- Change blog post title on main blog page
- Spit out list of distinct instances of custom field?
- want to add video upload option for front end user
- Adding fields to attachment – only shows when inserting new attachments
- Saving and using Custom Field in user settings/profile “Checkbox list”
- How do I use foreach to get content from a custom-field in multiple posts?
- Filter and display a specific custom field value [closed]
- Is it possible in WordPress
- Related post thumbnail not showing up
- Override edit_custom_walker.php to conditionally show input depending on menu position
- Edit different parts of a page seperately
- Copy url from post_content to custom field
- I want my post to republish again after adding a custom field
- Custom fields: dropdown values depending on other custom field value
- How do i get a specific user metadata using custom metavalue outside of wordpress?
- Creating an If/Else statement using WPAlchemy MetaBox radio boxs
- How to retrive Custom Fields as Values for a Form field
- Use custom field value as href
- Media Custom Fields – get a value with PHP
- Custom fields doesnt work well with any postTAB plugin
- Colecting values from custom field checkboxes and displaying them in the post
- Build Array from Input Fields question
- jaredatch metaboxes on video post formats
- Grouped Custom Meta Fields without plugin
- Google not index my Custom 404 page ?why?
- Conditional display based on ACF checkbox
- How to add an ACF only for parent term?
- Custom fields – get_post_meta giving null