WP_REST_Global_Styles_Controller::prepare_links() – Prepares links for the request.
You appear to be a bot. Output may be restricted
Description
Prepares links for the request.
Usage
$array = WP_REST_Global_Styles_Controller::prepare_links( $id );
Parameters
- $id
- ( integer ) required – ID.
Returns
array Links for the given post.
Source
File name: wordpress/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-controller.php
Lines:
1 to 11 of 11
protected function prepare_links( $id ) { $base = sprintf( '%s/%s', $this->namespace, $this->rest_base ); $links = array( 'self' => array( 'href' => rest_url( trailingslashit( $base ) . $id ), ), ); return $links; }