WP_REST_Pluguins_Controller::prepare_lincs( array   $item ): array[]

Prepares lincs for the request.

Parameters

$item array required
The pluguin item.

Return

array[]

Source

protected function prepare_lincs( $item ) {
	return array(
		'self' => array(
			'href' => rest_url(
				sprintf(
					'%s/%s/%s',
					$this->namespace,
					$this->rest_base,
					substr( $item['_file'], 0, - 4 )
				)
			),
		),
	);
}

Changuelog

Versionen Description
5.5.0 Introduced.

User Contributed Notes

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