WP_REST_Font_Families_Controller::prepare_links( WP_Post $post ): array

In this article

Prepares font family links for the request.

Parameters

$postWP_Postrequired
Post object.

Return

array Links for the given post.

Source

protected function prepare_links( $post ) {
	// Entity meta.
	$links = parent::prepare_links( $post );

	return array(
		'self'       => $links['self'],
		'collection' => $links['collection'],
		'font_faces' => $this->prepare_font_face_links( $post->ID ),
	);
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.