WordPress at Your Fingertips
function is not described

ActionScheduler_wpPostStore::filter_insert_post_data() public WC 1.0

Filter insert post data.

{} It's a method of the class: ActionScheduler_wpPostStore{}

No Hooks.

Return

Array.

Usage

$ActionScheduler_wpPostStore = new ActionScheduler_wpPostStore();
$ActionScheduler_wpPostStore->filter_insert_post_data( $postdata );
$postdata(array) (required)
Post data to filter.

Code of ActionScheduler_wpPostStore::filter_insert_post_data() WC 6.1.1

public function filter_insert_post_data( $postdata ) {
	if ( self::POST_TYPE === $postdata['post_type'] ) {
		$postdata['post_author'] = 0;
		if ( 'future' === $postdata['post_status'] ) {
			$postdata['post_status'] = 'publish';
		}
	}
	return $postdata;
}