apply_filters( 'RCB/Forward/Endpoints', $endpoints, $filter ) → {array}
(Pro only) Get all available and predefined endpoints. E. g. if your are running within a mulitisite,
you will get all available WP REST API endpoints for each site within this multisite. That means, you need
to add your endpoint as follows: `$endpoints["https://example.com/wp-json/real-cookie-banner/v1/consent/forward"] = 'My example'.`
Attention: This filter can be run multiple times when you are within a multisite. For each blog, the filter is applied.
Parameters:
Name | Type | Description |
---|---|---|
$endpoints |
array | |
$filter |
boolean | Can be `all`, `notCurrent` and `onlyCurrent` |
Returns:
- Type
- array