• Knowledge Base
    • All Articles
    • BuddyBoss Platform
    • BuddyBoss Theme
    • BuddyBoss App
    • Integrations
    • Advanced Setup
    • Troubleshooting
    • Release Notes
      • BuddyBoss Platform
      • BuddyBoss Platform Pro
      • BuddyBoss Theme
      • BuddyBoss App
      • BuddyBoss App Plugin
      • Other Products
  • Developers
    • Developer Tutorials
      • Web Development
      • App Development
    • Code Reference
      • Functions
      • Hooks
      • Classes
      • Methods
      • Commands
      • App Codex
    • REST API
      • BuddyBoss Platform
      • BuddyBoss App
    • Font Cheatsheet
    • Github Project
  • Roadmap
  • Go to BuddyBoss
    Contact Support
    Filter
    • Knowledge Base
      • All Articles
      • BuddyBoss Platform
      • BuddyBoss Theme
      • BuddyBoss App
      • Integrations
      • Advanced Setup
      • Troubleshooting
      • Release Notes
        • BuddyBoss Platform
        • BuddyBoss Platform Pro
        • BuddyBoss Theme
        • BuddyBoss App
        • BuddyBoss App Plugin
        • Other Products
    • Developers
      • Developer Tutorials
        • Web Development
        • App Development
      • Code Reference
        • Functions
        • Hooks
        • Classes
        • Methods
        • Commands
        • App Codex
      • REST API
        • BuddyBoss Platform
        • BuddyBoss App
      • Font Cheatsheet
      • Github Project
    • Roadmap
    • Go to BuddyBoss
    Filter
    Filter

    Contents

    • Description
    • Parameters
    • Return
    • Source
    • Related
    Code Reference Classes BP_REST_Account_Settings_Endpoint BP_REST_Account_Settings_Endpoint::prepare_links()

    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;
    	}
    

    Expand full source code Collapse full source code

    Related

    Used By
    Used By Description
    bp-settings/classes/class-bp-rest-account-settings-endpoint.php: BP_REST_Account_Settings_Endpoint::prepare_item_for_response()

    Prepares account settings data for return as an object.

    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.

    © 2025 • BuddyBoss