WP_REST_Posts_Controller::check_delete_permission

SummerySummery

Checks if a post can be deleted.

Syntax

WP_REST_Posts_Controller::check_delete_permission( WP_Post $post )

ParametersParameters

$post

(WP_Post) (Required) Post object.

ReturnReturn

(bool) Whether the post can be deleted.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top