Function: _wp_customize_changeset_filter_insert_post_data

_wp_customize_changeset_filter_insert_post_data( array $post_data, array $supplied_post_data )

Filters changeset post data upon insert to ensure post_name is intact.

Shortcut: wccfipd

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

This is needed to prevent the post_name from being dropped when the post is transitioned into pending status by a contributor.


Name Type(s) Default Value Description
$post_data array

An array of slashed post data.

$supplied_post_data array

An array of sanitized, but otherwise unmodified post data.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.