Make WordPress Core

Changeset 55108


Ignore:
Timestamp:
01/20/2023 09:41:26 PM (22 months ago)
Author:
audrasjb
Message:

Quick/Bulk Edit: Add an action hook on bulk_edit_posts().

This changeset introduces the bulk_edit_posts action hook, triggered after processing the post data for bulk edit and before it returns its results. For example, it allows developers to save additional data without having to perform any .ajax() call.

Props helgatheviking, helen, Mte90, afercia, mrasharirfan, desrosj, itowhid06, pento, mensmaximus, audrasjb, costdev.
Fixes #28112.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r54891 r55108  
    663663        }
    664664    }
     665
     666    /**
     667     * Fires after processing the post data for bulk edit.
     668     *
     669     * @since 6.2.0
     670     *
     671     * @param array $post_data Associative array containing the post data.
     672     */
     673    do_action( 'bulk_edit_posts', $post_data );
    665674
    666675    return array(
Note: See TracChangeset for help on using the changeset viewer.