restore_current_blog()
Restore current blog.
Description #Description
See also #See also
Return #Return
(int)
Source #Source
File: bp-core/bp-core-wpabstraction.php
function restore_current_blog() { return bp_get_root_blog_id(); }
Expand full source code Collapse full source code View on Trac
Related #Related
Uses #Uses
Uses | Description |
---|---|
bp-core/bp-core-functions.php: bp_get_root_blog_id() |
Get the ID of the root blog. |
Used By #Used By
Used By | Description |
---|---|
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-slugs.php: bp_core_admin_slugs_options() |
Creates reusable markup for page setup on the Components and Pages dashboard panel. |
bp-core/bp-core-customizer-email.php: bp_email_redirect_to_customizer() |
Implements a JS redirect to the Customizer, previewing a randomly selected email. |
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. |
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-email.php: BP_Email::get_preheader() |
Get email preheader. |
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-taxonomy.php: bp_delete_term() |
Deletes a BP Term. |
bp-core/bp-core-update.php: bp_version_updater() |
Initialize an update or installation of BuddyPress. |
bp-core/bp-core-taxonomy.php: bp_insert_term() |
Add a new taxonomy term to the database. |
bp-core/bp-core-taxonomy.php: bp_get_terms() |
Get taxonomy BP Terms from the database. |
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-blogs/bp-blogs-functions.php: bp_blogs_get_site_icon_url() |
Gets the site icon URL even when BuddyPress is not network activated. |
bp-blogs/bp-blogs-template.php: bp_blogs_confirm_blog_signup() |
Display a message after successful blog registration. |
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_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_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-activity.php: bp_blogs_comments_open() |
Check if a blog post’s activity item should be closed from commenting. |
cli/src/email.php: Email::create() |
Create a new email post connected to an email type. |
cli/src/activity.php: Activity::generate_item_details() |
Generate item details. |
bp-groups/classes/class-bp-groups-group.php: BP_Groups_Group::get_sql_clause_for_group_types() |
Get SQL clause for group type(s). |
Changelog #Changelog
Version | Description |
---|---|
1.2.0 | Introduced. |