_wp_customize_changeset_filter_insert_post_data


_wp_customize_changeset_filter_insert_post_data ( $post_data, $supplied_post_data )

Parameters:
  • (array) post_data An array of slashed post data.
  • (array) supplied_post_data An array of sanitized, but otherwise unmodified post data.
See:
Returns:
  • (array) Filtered data.
Defined at:

Description

Filters changeset post data upon insert to ensure post_name is intact.This is needed to prevent the post_name from being dropped when the post is transitioned into pending status by a contributor.

Related Functions

_wp_delete_customize_changeset_dependent_auto_drafts, _wp_keep_alive_customize_changeset_dependent_auto_drafts, wp_after_insert_post, _wp_customize_publish_changeset, _wp_customize_loader_settings

Top Google Results

User discussions

wpseek mobile