Make WordPress Core


Ignore:
Timestamp:
06/28/2023 01:17:49 PM (19 months ago)
Author:
SergeyBiryukov
Message:

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

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

Follow-up to [8973].

Props helgatheviking, helen, Mte90, afercia, mrasharirfan, desrosj, itowhid06, pento, mensmaximus, audrasjb, costdev, webcommsat, marybaum, oglekler, mukesh27, SergeyBiryukov.
Fixes #28112.

File:
1 edited

Legend:

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

    r56022 r56091  
    681681        }
    682682    }
     683
     684    /**
     685     * Fires after processing the post data for bulk edit.
     686     *
     687     * @since 6.3.0
     688     *
     689     * @param int[] $updated          An array of updated post IDs.
     690     * @param array $shared_post_data Associative array containing the post data.
     691     */
     692    do_action( 'bulk_edit_posts', $updated, $shared_post_data );
    683693
    684694    return array(
Note: See TracChangeset for help on using the changeset viewer.