WP_REST_Autosaves_Controller::create_post_autosave

Advertisement

Summery Summery

Creates autosave for the specified post.

Syntax Syntax

WP_REST_Autosaves_Controller::create_post_autosave( array $post_data )

Description Description

From wp-admin/post.php.

Parameters Parameters

$post_data

(array) (Required) Associative array containing the post data.

Return Return

(mixed) The autosave revision ID or WP_Error.

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.