BP_Nouveau::customizer_set_uri( string $path )
Set the BP Uri for the customizer in case of Ajax requests.
Description
Parameters
- $path
-
(Required) the BP Uri.
Return
(string) the BP Uri.
Source
File: bp-templates/bp-nouveau/buddypress-functions.php
public function customizer_set_uri( $path ) { if ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) { return $path; } $uri = parse_url( $path ); if ( false === strpos( $uri['path'], 'customize.php' ) ) { return $path; } else { $vars = wp_parse_args( $uri['query'], array() ); if ( ! empty( $vars['url'] ) ) { $path = str_replace( get_site_url(), '', urldecode( $vars['url'] ) ); } } return $path; }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
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.