Contents
restore_current_blog()
Restore current blog.
Description
See also
Return
(int)
Source
File: bp-core/bp-core-wpabstraction.php
function restore_current_blog() { return bp_get_root_blog_id(); }
Changelog
Version | Description |
---|---|
BuddyPress 1.2.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-core/bp-core-functions.php: bp_get_root_blog_id() |
Get the ID of the root blog. |
Used By | Description |
---|---|
bp-groups/bp-groups-functions.php: bp_group_get_count_by_group_type() |
Get group count of group type tabs groups. |
bp-forums/admin/tools.php: bp_admin_forum_repair_tools_wrapper_function() |
Wrapper function to handle Repair Forums all the actions. |
bp-forums/admin/actions.php: bbp_new_site() |
When a new site is created in a multisite installation, run the activation routine on that site |
bp-forums/admin/admin.php: BBP_Admin::network_update_screen() |
Update all forums across all sites |
bp-forums/admin/functions.php: bbp_do_uninstall() |
Uninstall all Forums options and capabilities from a specific site. |
bp-forums/users/capabilities.php: bbp_make_spam_user() |
Mark a users topics and replies as spam when the user is marked as spam |
bp-forums/users/capabilities.php: bbp_make_ham_user() |
Mark a users topics and replies as spam when the user is marked as spam |
bp-blogs/bp-blogs-activity.php: bp_blogs_format_activity_action_new_custom_post_type_feed() |
Format ‘new_blog_*’ various custom post type activity actions. |
bp-blogs/bp-blogs-activity.php: bp_blogs_sync_add_from_activity_comment() |
Syncs activity comments and posts them back as blog comments. |
bp-blogs/bp-blogs-activity.php: bp_blogs_sync_delete_from_activity_comment() |
Deletes the blog comment when the associated activity comment is deleted. |
bp-blogs/bp-blogs-activity.php: bp_blogs_sync_activity_edit_to_post_comment() |
Updates the blog comment when the associated activity comment is edited. |
bp-blogs/bp-blogs-activity.php: bp_blogs_comments_open() |
Check if a blog post’s activity item should be closed from commenting. |
bp-blogs/bp-blogs-activity.php: bp_blogs_format_activity_action_new_blog_post() |
Format ‘new_blog_post’ activity actions. |
bp-blogs/bp-blogs-activity.php: bp_blogs_format_activity_action_new_blog_comment() |
Format ‘new_blog_comment’ activity actions. |
bp-blogs/bp-blogs-template.php: bp_blogs_confirm_blog_signup() |
Display a message after successful blog registration. |
bp-blogs/bp-blogs-template.php: bp_get_blog_avatar() |
Get a blog’s avatar. |
bp-groups/classes/class-bp-groups-group.php: BP_Groups_Group::get_sql_clause_for_group_types() |
Get SQL clause for group type(s). |
bp-core/deprecated/buddyboss/1.1.8.php: bp_get_total_count_by_group_types() |
Get group count of group type tabs groups. |
bp-core/bp-core-taxonomy.php: bp_set_object_terms() |
Set taxonomy terms on a BuddyPress object. |
bp-core/bp-core-taxonomy.php: bp_get_object_terms() |
Get taxonomy terms for a BuddyPress object. |
bp-core/bp-core-taxonomy.php: bp_remove_object_terms() |
Remove taxonomy terms on a BuddyPress object. |
bp-core/bp-core-taxonomy.php: bp_get_objects_in_term() |
Retrieve IDs of objects in valid taxonomies and terms for BuddyPress-related taxonomies. |
bp-core/bp-core-taxonomy.php: bp_get_term_by() |
Get term data for terms in BuddyPress taxonomies. |
bp-core/admin/bp-core-admin-actions.php: bp_new_site() |
When a new site is created in a multisite installation, run the activation routine on that site. |
bp-core/admin/bp-core-admin-tools.php: bp_admin_reinstall_emails() |
Delete emails and restore from defaults. |
bp-core/admin/bp-core-admin-pages.php: bp_admin_setting_callback_page_directory_dropdown() |
Pages drop downs callback |
bp-core/admin/bp-core-admin-functions.php: bp_member_type_import_submenu_page() |
Import profile types. |
bp-core/bp-core-customizer-email.php: bp_email_get_redirect_to_customizer_url() |
Return a redirect url to the Customizer, previewing a randomly selected email. |
bp-core/bp-core-update.php: bp_version_updater() |
Initialize an update or installation of BuddyPress. |
bp-core/bp-core-wp-emails.php: bp_email_newblog_notify_siteadmin() |
Filters the message body of the new site activation email sent to the network administrator. |
bp-core/classes/class-bp-user-query.php: BP_User_Query::get_sql_clause_for_member_types() |
Get a SQL clause representing member_type include/exclusion. |
bp-core/classes/class-bp-core-network-posts-widget.php: BP_Core_Network_Posts_Widget::widget() |
Display the Members widget. |
bp-core/bp-core-caps.php: bp_user_can() |
Check whether the specified user has a given capability on a given site. |
bp-core/bp-core-functions.php: bp_get_email() |
Get an BP_Email object for the specified email type. |
bp-core/bp-core-functions.php: bp_upload_dir() |
Set data from the BP root blog’s upload directory. |
bp-core/bp-core-functions.php: bp_core_add_page_mappings() |
Creates necessary directory pages. |
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.