sfw_register_rest_route

Description

Wrapper for registering a new rest route in der sfw namespace

Since: 1.0.0

For further information see: register_rest_route

Code

<?php function sfw_register_rest_route( $route = '', $args = array(), $override = false, $priority = 15 ){ 
	 … 
 } ?>

Parameter

$route
(string)

Default: ''

$args
(array)

Default: array()

$override
(bool)

Default: false

$priority
(int) The priority when the route should be registered at rest_api_init

Default: 15

Return

Seems like the return value of this function is not yet documented.

File

core/includes/functions-wp-rest.php