WP_REST_Posts_Controller::check_create_permission

SummerySummery

Checks if a post can be created.

Syntax

WP_REST_Posts_Controller::check_create_permission( WP_Post $post )

ParametersParameters

$post

(WP_Post) (Required) Post object.

ReturnReturn

(bool) Whether the post can be created.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top