WP_REST_Posts_Controller::prepare_links

SummerySummery

Prepares links for the request.

Syntax

WP_REST_Posts_Controller::prepare_links( WP_Post $post )

ParametersParameters

$post

(WP_Post) (Required) Post object.

ReturnReturn

(array) Links for the given post.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top