Property | Type | Description | |
---|---|---|---|
$endpoints | array |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
add_filters ( ) : boolean | If one of the registered endpoints is selected, add the required filters. | |
get_requested_endpoint ( ) : |
||
register_endpoint ( string $url, array $plugins = [] ) |
public add_filters ( ) : boolean | ||
return | boolean |
public get_requested_endpoint ( ) : |
||
return |
public register_endpoint ( string $url, array $plugins = [] ) | ||
$url | string | The leading URL for this endpoint |
$plugins | array | Array of enabled plugin slugs for this endpoint |