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
- Custom post meta field effect on the performance on the post
- Difference between meta keys with _ and without _ [duplicate]
- Having different sidebar content for MANY pages?
- Add custom objects/entities to WordPress
- How can I fetch CSS from JSON WP REST API response
- Is there a hook / action that is triggered when adding or removing a post thumbnail?
- Get custom field values into the sidebar/widget?
- Custom fields are not restored to previous revisions
- Multiple custom fields with the same name
- Extra filed under “About the user” user profile
- Execute/Parse Shortcode in Native WordPress Custom Field Value Field
- Displaying Custom Fields on Post with Genesis Child Theme
- Custom fields: In what order are they saved into the DB?
- Metabox image upload and custom field
- How to add a title field in comments?
- Inserting Schema Markup (JSON-LD) Manually with Custom Fields or any Better Ways?
- Force hide custom field metaboxes
- Custom Fields Code not echoing whats in the value field
- Meta query with timestamp using WP_query
- Passing Custom Field Data as Array to be Saved (Resulting Custom Field Array is inconsistent)
- load custom fields on click
- Add Custom Field to a template page backend
- custom field not saved
- How to create a Custom Meta Box with Name/Value Admin User Input Fields?
- Auto-remove custom field with no value on publish
- Hide custom meta data if empty
- Passing args to WP_User_Query am I using meta correctly?
- How to get latest post value if first post is empty in wordpress
- Custom fields attached to a page template only show on edit screen when page is saved
- Value from custom field is not being displayed?
- Can I access a post meta field before the loop?
- wrap text around custom fields array
- Displaying page image in the footer automatically
- Hide custom column in admin template screen (Elementor) [closed]
- ORDER BY custom field value out of where clause
- Show image if author meta (profile fields) exists outside loop
- How can i retrive a text from a custom field
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- Is it possible to populate a custom field with content from a page
- Buik update custom field values from external API
- award points to a user each time they update their cpt post
- TinyMCE custom button retrieve value from custom field
- Change a custom field value after X number of seconds
- How to put forward a blog post
- Let Users Filter Posts by Custom Fields
- Run Function if Order Meta Exists – WooCommerce
- Display latest post depending on Meta Box content
- Custom fields won’t update
- How to use custom fields like Title to show value in content?
- Populate custom checkout fields with data from previous orders
- Expire Date Condition not Working ACF WordPress
- Making custom meta box required (with error message if not filled in) on Gutenberg
- Is the use of many custom field not good for server?
- Changing form action based on selected value
- Very large list of options for BuddyPress profile fields
- Hiding Dropdown Fields
- Can you generate a featured image from two images from custom fields?
- Change Order of Sections Using Custom Fields
- How to add content with a filter when there’s no content in the editor
- Text in header as a page – hide from Web crawlers
- When post is updated, custom metadata in text area field is overwritten
- Order a query by meta_value and then by post_date
- custom field functionality
- Custom Fields – How can I remove the publish option for certain users
- Can i categorise my meta box?
- How to overwrite a value for a custom field?
- WordPress archives by custom field and date
- Custom Field add markup to line breaks
- When editing a post with a custom meta box the values aren’t displaying correctly
- Function to retrieve a picture if there is no picture is attached
- Show posts containing or not custom field
- add_post_meta insert null value into Database
- extra post fields for url + youtube video / implementation
- How to create a searchable database with a single-field search box at the front end? [closed]