current_component: string 'xprofile' * - $bp->current_action: string 'edit' * - $bp->action_variables: array ['group', 5] * * @since 1.0.0 * @deprecated 12.0.0 */ function bp_core_set_uri_globals() { _deprecated_function( __FUNCTION__, '12.0.0' ); } /** * Add support for a top-level ("root") component. * * This function originally (pre-1.5) let plugins add support for pages in the * root of the install. These root level pages are now handled by actual * WordPress pages and this function is now a convenience for compatibility * with the new method. * * @since 1.0.0 * @deprecated 12.0.0 * * @param string $slug The slug of the component being added to the root list. */ function bp_core_add_root_component( $slug ) { _deprecated_function( __FUNCTION__, '12.0.0' ); } /** * Return the domain for the root blog. * * Eg: http://example.com OR https://example.com * * @since 1.0.0 * @deprecated 12.0.0 * * @return string The domain URL for the blog. */ function bp_core_get_root_domain() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_rewrites_get_root_url()' ); $domain = bp_rewrites_get_root_url(); /** * Filters the domain for the root blog. * * @since 1.0.1 * @deprecated 12.0.0 Use {@see 'bp_rewrites_get_root_url'} instead. * * @param string $domain The domain URL for the blog. */ return apply_filters_deprecated( 'bp_core_get_root_domain', array( $domain ), '12.0.0', 'bp_rewrites_get_root_url' ); } /** * Return the "root domain", the URL of the BP root blog. * * @since 1.1.0 * @deprecated 12.0.0 * * @return string URL of the BP root blog. */ function bp_get_root_domain() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_get_root_url()' ); $domain = bp_get_root_url(); /** * Filters the "root domain", the URL of the BP root blog. * * @since 1.2.4 * @deprecated 12.0.0 Use {@see 'bp_get_root_url'} instead. * * @param string $domain URL of the BP root blog. */ return apply_filters_deprecated( 'bp_get_root_domain', array( $domain ), '12.0.0', 'bp_get_root_url' ); } /** * Output the "root domain", the URL of the BP root blog. * * @since 1.1.0 * @deprecated 12.0.0 */ function bp_root_domain() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_root_url()' ); bp_root_url(); } /** * Renders the page mapping admin panel. * * @since 1.6.0 * @deprecated 12.0.0 */ function bp_core_admin_slugs_settings() { _deprecated_function( __FUNCTION__, '12.0.0' ); } /** * Generate a list of directory pages, for use when building Components panel markup. * * @since 2.4.1 * @deprecated 12.0.0 * * @return array */ function bp_core_admin_get_directory_pages() { _deprecated_function( __FUNCTION__, '12.0.0' ); $directory_pages = (array) bp_core_get_directory_pages(); $return = wp_list_pluck( $directory_pages, 'name', 'id' ); return apply_filters_deprecated( 'bp_directory_pages', array( $return ), '12.0.0' ); } /** * Generate a list of static pages, for use when building Components panel markup. * * By default, this list contains 'register' and 'activate'. * * @since 2.4.1 * @deprecated 12.0.0 * * @return array */ function bp_core_admin_get_static_pages() { _deprecated_function( __FUNCTION__, '12.0.0' ); $static_pages = array( 'register' => __( 'Register', 'buddypress' ), 'activate' => __( 'Activate', 'buddypress' ), ); return apply_filters_deprecated( 'bp_directory_pages', array( $static_pages ), '12.0.0' ); } /** * Creates reusable markup for page setup on the Components and Pages dashboard panel. * * @package BuddyPress * @since 1.6.0 * @deprecated 12.0.0 */ function bp_core_admin_slugs_options() { _deprecated_function( __FUNCTION__, '12.0.0' ); do_action_deprecated( 'bp_active_external_directories', array(), '12.0.0' ); do_action_deprecated( 'bp_active_external_pages', array(), '12.0.0' ); } /** * Handle saving of the BuddyPress slugs. * * @since 1.6.0 * @deprecated 12.0.0 */ function bp_core_admin_slugs_setup_handler() { _deprecated_function( __FUNCTION__, '12.0.0' ); } /** * Return the username for a user based on their user id. * * This function is sensitive to the BP_ENABLE_USERNAME_COMPATIBILITY_MODE, * so it will return the user_login or user_nicename as appropriate. * * @since 1.0.0 * @deprecated 12.0.0 * * @param int $user_id Optional. User ID to check. * @param string|bool $user_nicename Optional. User nicename of user being checked. * @param string|bool $user_login Optional. User login of user being checked. * @return string The username of the matched user or an empty string if no user is found. */ function bp_core_get_username( $user_id = 0, $user_nicename = false, $user_login = false ) { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_members_get_user_slug()' ); if ( ! $user_id ) { $value = $user_nicename; $field = 'slug'; if ( ! $user_nicename ) { $value = $user_login; $field = 'login'; } $user = get_user_by( $field, $value ); if ( $user instanceof WP_User ) { $user_id = (int) $user->ID; } } $username = bp_members_get_user_slug( $user_id ); /** * Filters the username based on originally provided user ID. * * @since 1.0.1 * @deprecated 12.0.0 * * @param string $username Username determined by user ID. */ return apply_filters_deprecated( 'bp_core_get_username', array( $username ), '12.0.0', 'bp_members_get_user_slug' ); } /** * Return the domain for the passed user: e.g. http://example.com/members/andy/. * * @since 1.0.0 * @deprecated 12.0.0 * * @param int $user_id Optional. The ID of the user. * @param string|bool $user_nicename Optional. User nicename of the user. * @param string|bool $user_login Optional. User login of the user. * @return string */ function bp_core_get_user_domain( $user_id = 0, $user_nicename = false, $user_login = false ) { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_members_get_user_url()' ); if ( empty( $user_id ) ) { return; } $domain = bp_members_get_user_url( $user_id ); // Don't use this filter. Subject to removal in a future release. // Use the 'bp_core_get_user_domain' filter instead. $domain = apply_filters_deprecated( 'bp_core_get_user_domain_pre_cache', array( $domain, $user_id, $user_nicename, $user_login ), '12.0.0' ); /** * Filters the domain for the passed user. * * @since 1.0.1 * @deprecated 12.0.0 * * @param string $domain Domain for the passed user. * @param int $user_id ID of the passed user. * @param string $user_nicename User nicename of the passed user. * @param string $user_login User login of the passed user. */ return apply_filters_deprecated( 'bp_core_get_user_domain', array( $domain, $user_id, $user_nicename, $user_login ), '12.0.0', 'bp_members_get_user_url' ); } /** * Get the link for the logged-in user's profile. * * @since 1.0.0 * @deprecated 12.0.0 * * @return string */ function bp_get_loggedin_user_link() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_loggedin_user_url()' ); $url = bp_loggedin_user_url(); /** * Filters the link for the logged-in user's profile. * * @since 1.2.4 * @deprecated 12.0.0 * * @param string $url Link for the logged-in user's profile. */ return apply_filters_deprecated( 'bp_get_loggedin_user_link', array( $url ), '12.0.0', 'bp_loggedin_user_url' ); } /** * Get the link for the displayed user's profile. * * @since 1.0.0 * @deprecated 12.0.0 * * @return string */ function bp_get_displayed_user_link() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_displayed_user_url()' ); $url = bp_displayed_user_url(); /** * Filters the link for the displayed user's profile. * * @since 1.2.4 * @deprecated 12.0.0 * * @param string $url Link for the displayed user's profile. */ return apply_filters_deprecated( 'bp_get_displayed_user_link', array( $url ), '12.0.0', 'bp_displayed_user_url' ); } /** * Alias of {@link bp_displayed_user_domain()}. * * @deprecated 12.0.0 */ function bp_user_link() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_displayed_user_url()' ); bp_displayed_user_url(); } /** * Output group directory permalink. * * @since 1.5.0 * @deprecated 12.0.0 */ function bp_groups_directory_permalink() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_groups_directory_url()' ); bp_groups_directory_url(); } /** * Return group directory permalink. * * @since 1.5.0 * @deprecated 12.0.0 * * @return string */ function bp_get_groups_directory_permalink() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_get_groups_directory_url()' ); $url = bp_get_groups_directory_url(); /** * Filters the group directory permalink. * * @since 1.5.0 * @deprecated 12.0.0 * * @param string $url Permalink for the group directory. */ return apply_filters_deprecated( 'bp_get_groups_directory_permalink', array( $url ), '12.0.0', 'bp_get_groups_directory_url' ); } /** * Output the permalink for the group. * * @since 1.0.0 * @deprecated 12.0.0 * * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. * Default: false. */ function bp_group_permalink( $group = false ) { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_group_url()' ); bp_group_url( $group ); } /** * Return the permalink for the group. * * @since 1.0.0 * @since 10.0.0 Updated to use `bp_get_group`. * @deprecated 12.0.0 * * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. * Default: false. * @return string */ function bp_get_group_permalink( $group = false ) { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_get_group_url()' ); $url = bp_get_group_url( $group ); /** * Filters the permalink for the group. * * @since 1.0.0 * @since 2.5.0 Added the `$group` parameter. * @deprecated 12.0.0 * * @param string $url Permalink for the group. * @param BP_Groups_Group $group The group object. */ return apply_filters_deprecated( 'bp_get_group_permalink', array( $url, $group ), '12.0.0', 'bp_get_group_url' ); } /** * Output the permalink for the admin section of the group. * * @since 1.0.0 * @deprecated 12.0.0 * * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. * Default: false. */ function bp_group_admin_permalink( $group = false ) { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_group_manage_url()' ); bp_group_manage_url( $group ); } /** * Return the permalink for the admin section of the group. * * @since 1.0.0 * @since 10.0.0 Updated to use `bp_get_group`. * @deprecated 12.0.0 * * @param false|int|string|BP_Groups_Group $group (Optional) The Group ID, the Group Slug or the Group object. * Default: false. * @return string */ function bp_get_group_admin_permalink( $group = false ) { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_get_group_manage_url()' ); $permalink = bp_get_group_manage_url( $group ); /** * Filters the permalink for the admin section of the group. * * @since 1.0.0 * @since 2.5.0 Added the `$group` parameter. * @deprecated 12.0.0 * * @param string $permalink Permalink for the admin section of the group. * @param BP_Groups_Group $group The group object. */ return apply_filters_deprecated( 'bp_get_group_admin_permalink', array( $permalink, $group ), '12.0.0', 'bp_get_group_manage_url' ); } /** * Output blog directory permalink. * * @since 1.5.0 * @deprecated 12.0.0 */ function bp_blogs_directory_permalink() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_blogs_directory_url()' ); bp_blogs_directory_url(); } /** * Return blog directory permalink. * * @since 1.5.0 * @deprecated 12.0.0 * * @return string The URL of the Blogs directory. */ function bp_get_blogs_directory_permalink() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_get_blogs_directory_url()' ); $url = bp_get_blogs_directory_url(); /** * Filters the blog directory permalink. * * @since 1.5.0 * @deprecated 12.0.0 * * @param string $url Permalink URL for the blog directory. */ return apply_filters_deprecated( 'bp_get_blogs_directory_permalink', array( $url ), '12.0.0', 'bp_get_blogs_directory_url' ); } /** * Returns the upper limit on the "max" item count, for widgets that support it. * * @since 5.0.0 * @deprecated 12.0.0 * * @param string $widget_class Optional. Class name of the calling widget. * @return int */ function bp_get_widget_max_count_limit( $widget_class = '' ) { _deprecated_function( __FUNCTION__, '12.0.0' ); /** * Filters the upper limit on the "max" item count, for widgets that support it. * * @since 5.0.0 * @deprecated 12.0.0 * * @param int $count Defaults to 50. * @param string $widget_class Class name of the calling widget. */ return apply_filters_deprecated( 'bp_get_widget_max_count_limit', array( 50, $widget_class ), '12.0.0' ); } /** * Determine whether BuddyPress should register the bp-themes directory. * * @since 1.9.0 * @deprecated 12.0.0 * * @return bool True if bp-themes should be registered, false otherwise. */ function bp_do_register_theme_directory() { _deprecated_function( __FUNCTION__, '12.0.0' ); $register = false; /** * Filters whether BuddyPress should register the bp-themes directory. * * @since 1.9.0 * @deprecated 12.0.0 * * @param bool $register If bp-themes should be registered. */ return apply_filters_deprecated( 'bp_do_register_theme_directory', array( $register ), '12.0.0' ); } /** * Fire the 'bp_register_theme_directory' action. * * The main action used registering theme directories. * * @since 1.5.0 * @deprecated 12.0.0 */ function bp_register_theme_directory() { _deprecated_function( __FUNCTION__, '12.0.0' ); /** * Fires inside the 'bp_register_theme_directory' function. * * The main action used registering theme directories. * * @since 1.7.0 * @deprecated 12.0.0 */ do_action_deprecated( 'bp_register_theme_directory', array(), '12.0.0' ); } } /** * Create WordPress pages to be used as BP component directories. * * @since 1.5.0 * @deprecated 12.0.0 */ function bp_core_create_root_component_page() { _deprecated_function( __FUNCTION__, '12.0.0' ); } /** * Create a default component slug from a WP page root_slug. * * Since 1.5, BP components get their root_slug (the slug used immediately * following the root domain) from the slug of a corresponding WP page. * * E.g. if your BP installation at example.com has its members page at * example.com/community/people, $bp->members->root_slug will be * 'community/people'. * * By default, this function creates a shorter version of the root_slug for * use elsewhere in the URL, by returning the content after the final '/' * in the root_slug ('people' in the example above). * * Filter on 'bp_core_component_slug_from_root_slug' to override this method * in general, or define a specific component slug constant (e.g. * BP_MEMBERS_SLUG) to override specific component slugs. * * @since 1.5.0 * @deprecated 12.0.0 * * @param string $root_slug The root slug, which comes from $bp->pages->[component]->slug. * @return string The short slug for use in the middle of URLs. */ function bp_core_component_slug_from_root_slug( $root_slug ) { _deprecated_function( __FUNCTION__, '12.0.0' ); return apply_filters_deprecated( 'bp_core_component_slug_from_root_slug', array( $root_slug, $root_slug ), '12.0.0' ); } /** * Define the slug constants for the Members component. * * Handles the three slug constants used in the Members component - * BP_MEMBERS_SLUG, BP_REGISTER_SLUG, and BP_ACTIVATION_SLUG. If these * constants are not overridden in wp-config.php or bp-custom.php, they are * defined here to match the slug of the corresponding WP pages. * * In general, fallback values are only used during initial BP page creation, * when no slugs have been explicitly defined. * * @since 1.5.0 * @deprecated 12.0.0 */ function bp_core_define_slugs() { _deprecated_function( __FUNCTION__, '12.0.0' ); } /** * Outputs the group creation numbered steps navbar * * @since 3.0.0 * @deprecated 12.0.0 */ function bp_nouveau_group_creation_tabs() { _deprecated_function( __FUNCTION__, '12.0.0', 'bp_group_creation_tabs()' ); bp_group_creation_tabs(); } /** * Displays group header tabs. * * @since 1.0.0 * @deprecated 12.0.0 */ function bp_groups_header_tabs() { _deprecated_function( __FUNCTION__, '12.0.0' ); $user_groups = bp_displayed_user_url() . bp_get_groups_slug(); $recently_active = ! bp_action_variable( 0 ) || bp_is_action_variable( 'recently-active', 0 ); $recently_joined = bp_is_action_variable( 'recently-joined', 0 ); $most_popular = bp_is_action_variable( 'most-popular', 0 ); $admin_of = bp_is_action_variable( 'admin-of', 0 ); $mod_of = bp_is_action_variable( 'mod-of', 0 ); $alphabetical = bp_is_action_variable( 'alphabetically' ); ?>
name ); ?>
value ); ?>