WordPress/wp-includes/rest-api/endpoints
Peter Wilson 32d193f96f REST API, Posts: Add a hook to fire once a post, its terms and meta update.
Introduces the action `wp_after_insert_post` inside a wrapper function of the same name. This hook allows plugin developers to access a posts full data (including its terms and meta data) regardless of the workflow used to save it.

A new parameter is introduced to `wp_insert_post()` to indicate whether the hook should be fired within the function call or will be fired afterward.

Props aristath, Collizo4sky, danielbachhuber, joyously, kadamwhite, kraftbj, markparnell, mikeschroder, noisysocks, peterwilsoncc, SergeyBiryukov, talldanwp, thewebprincess, TimothyBlynJacobs.
Fixes #45114.

Built from https://develop.svn.wordpress.org/trunk@49172


git-svn-id: http://core.svn.wordpress.org/trunk@48934 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-10-16 03:34:08 +00:00
..
class-wp-rest-application-passwords-controller.php REST API: Introduce Application Passwords for API authentication. 2020-10-08 22:14:06 +00:00
class-wp-rest-attachments-controller.php REST API, Posts: Add a hook to fire once a post, its terms and meta update. 2020-10-16 03:34:08 +00:00
class-wp-rest-autosaves-controller.php
class-wp-rest-block-directory-controller.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-rest-block-renderer-controller.php General: Replace older-style PHP type conversion functions with type casts. 2020-10-08 21:15:13 +00:00
class-wp-rest-block-types-controller.php i18n: Ensure block type strings in the REST API end with a full stop. 2020-09-16 19:23:07 +00:00
class-wp-rest-blocks-controller.php
class-wp-rest-comments-controller.php
class-wp-rest-controller.php REST API: Extract WP_REST_Controller::get_endpoint_args_for_item_schema() to a standalone function. 2020-09-07 02:37:07 +00:00
class-wp-rest-plugins-controller.php
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php
class-wp-rest-posts-controller.php REST API, Posts: Add a hook to fire once a post, its terms and meta update. 2020-10-16 03:34:08 +00:00
class-wp-rest-revisions-controller.php
class-wp-rest-search-controller.php Docs: Add @since notes for the $id parameter of REST API search controller accepting a string. 2020-10-03 01:22:11 +00:00
class-wp-rest-settings-controller.php
class-wp-rest-site-health-controller.php Site Health, REST API: Move async tests to REST API endpoints. 2020-10-15 02:00:08 +00:00
class-wp-rest-taxonomies-controller.php
class-wp-rest-terms-controller.php Taxonomy: Allow for wp_count_terms( $args ) signature, making passing a taxonomy optional. 2020-08-21 22:32:06 +00:00
class-wp-rest-themes-controller.php
class-wp-rest-users-controller.php Docs: Standardise the type name for booleans and integers. 2020-10-10 20:02:05 +00:00