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
811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 | 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.