BP_Nouveau::customizer_set_uri( string $path )
Set the BP Uri for the customizer in case of Ajax requests.
Description Description
Parameters Parameters
- $path
-
(Required) the BP Uri.
Return Return
(string) the BP Uri.
Source 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 = bp_parse_args(
$uri['query'],
array(),
'customizer_set_uri'
);
if ( ! empty( $vars['url'] ) ) {
$path = str_replace( get_site_url(), '', urldecode( $vars['url'] ) );
}
}
return $path;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |