WP_REST_Posts_Controller::get_available_actions

SummerySummery

Get the link relations available for the post and current user.

Syntax

WP_REST_Posts_Controller::get_available_actions( WP_Post $post, WP_REST_Request $request )

ParametersParameters

$post

(WP_Post) (Required) Post object.

$request

(WP_REST_Request) (Required) Request object.

ReturnReturn

(array) List of link relations.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.9.8 Introduced.
Scroll to Top