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
- How to order a Custom Fields in admin panel
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- WP_Query – Order results by meta value
- getting all values for a custom field key (cross-post)
- How to add a custom field in the advanced menu properties?
- Custom query with orderby meta_value of custom field
- Using meta query (‘meta_query’) with a search query (‘s’)
- Can I exclude a post by meta key using pre_get_posts function?
- Add validation and error handling when saving custom fields?
- How to apply Local Business Google Schema dynamically on a Custom Post single template?
- Create taxonomy terms from custom field values
- Add fields to edit in custom widget
- Save Custom Meta Value on Media Upload
- Archive for custom fields?
- Truncating characters in Advanced Custom Fields works some places but not others?
- Set new url from custom post field
- How to make donation button dynamic on chariti theme [closed]
- Add CSS class to posts with certain meta key
- Is there a way to read JSON data inside Custom Fields without editing PHP? [closed]
- save all acf options in one meta_value [closed]
- Conditional display based on ACF checkbox
- How to add new Metadata options (Date, Author, etc.) for Posts?
- WP Query Args – search by meta_key or title
- acf field repeater link don’t work
- Can running a WP-Cron to update_post_meta cause performance issues?
- custom field value is blank or empty
- Saving multiple custom meta box fields
- How to add an ACF only for parent term?
- How to add a custom field to the comments “Quick Edit” screen?
- Match submitted array fields with the MYSQL database fields to update them correctly in PHP
- Multiple triggers when publishing, saving or updating a post in WordPress
- If possible a field ID transfom in a Custom Field?
- Best way for managing images of ads banners
- Crop custom image size vs actual size
- ACF in radio button cf7
- Modal pop-up HTML code works on other sites or HTML viewers but not in the custom HTML block within a wordpress page?
- Set post status to draft after validating post meta values in save_post hook
- Automatically changing a posts status to draft based on magic fields [closed]
- Multiple permalinks for a single post from custom field
- Search for meta_query does not return any result if combined with title
- get Custom field label (select/dropdown) on front end
- get_the_ID() retrieves same ID on Gutenberg’s Query Loop
- How to display WordPress Twenty Twenty-Four’s built-in custom field in a post (or page)?
- How to conditionally display an ACF custom textarea contents only to those users chosen from an ACF User field
- Can I count every article following extracted meta value?
- Adding the numerical values from a custom field from all posts in a category
- Why the value of the selector doesnt remain visible in the custom field after I edit the post?
- How to hide a field on the frontend of a Buddypress page by field ID according to user roles and login status?
- Custom fields – get_post_meta giving null
- Custom fields empty after refreshing page
- I have design Tab in a Bootstrap 5 in row. And repeat row in ACF. only 1st row tab data is show. other row data off tabcontent appearing display:none
- Populate Elementor Form based on first selection
- Best Practice for storing aggregate data by date or other criteria?
- Custom post type needs to capability to create and edit by some specific user role
- Skip un-set meta fields (“Invalid field: fieldname”) when using `wp post list` and displaying custom fields
- Adding amount to cart when input field is filled
- SQL query based on two different custom field values
- Conditionally get ACF field in WordPress nav walker based on parent menu item?
- doesn’t save custom meta box data wordpress
- update and sanitize a value of a select field
- Replacing the deprecated function the_meta
- Block Editor – Meta values not saved, meta changes to empty array on update
- Sort posts based on an acf field called fecha value return longtext ‘20240517’
- How to conditionally change template based on ACF field in WordPress 6.5 with FSE theme?
- What is the best way to get a different post’s custom field/postmeta with js?
- Custom date column in user table not sorting correctly
- Sort posts by numeric value of custom field, and also show any other posts without that custom field
- Filtering output by two custom fields using posts_where and add_rewrite_rule
- Displaying child pages and file URL in an ACF relationship field shortcode
- Sort posts by numeric value of custom field, and also show any other posts without that custom field
- ACF auto complete all value from 1 cpt to another cpt
- Search by Custom Field content OR post id via the WordPress Dashboard
- Scheduled Posts in WordPress do not retain the value of a Custom Field
- ACF pro auto populated field is not saving