BP_REST_Account_Settings_Endpoint::prepare_links( string $nav_slug )
Prepare links for the request.
Description
Parameters
- $nav_slug
-
(Required) Navigation slug.
Return
(array) Links for the given group.
Source
File: bp-settings/classes/class-bp-rest-account-settings-endpoint.php
protected function prepare_links( $nav_slug ) {
$base = '/' . $this->namespace . '/' . $this->rest_base;
$links = array(
'options' => array(
'embeddable' => true,
'href' => rest_url( trailingslashit( $base ) . $nav_slug ),
),
);
return $links;
}
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.