Contents
bp_get_group_permalink( BP_Groups_Group|null $group = null )
Return the permalink for the current group in the loop.
Description
Parameters
- $group
-
(Optional) Group object. Default: current group in loop.
Default value: null
Return
(string)
Source
File: bp-groups/bp-groups-template.php
function bp_get_group_permalink( $group = null ) { global $groups_template; if ( empty( $group ) ) { $group =& $groups_template->group; } /** * Filters the permalink for the current group in the loop. * * @since BuddyPress 1.0.0 * @since BuddyPress 2.5.0 Added the `$group` parameter. * * @param string $value Permalink for the current group in the loop. * @param object $group Group object. */ return apply_filters( 'bp_get_group_permalink', trailingslashit( bp_get_groups_directory_permalink() . bp_get_group_slug( $group ) . '/' ), $group ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-groups/bp-groups-template.php: bp_get_group_slug() |
Return the slug for the current group in the loop. |
bp-groups/bp-groups-template.php: bp_get_group_permalink |
Filters the permalink for the current group in the loop. |
bp-groups/bp-groups-template.php: bp_get_groups_directory_permalink() |
Return group directory permalink. |
Used By | Description |
---|---|
bp-media/bp-media-template.php: bp_get_media_link() |
Return the media link. |
bp-activity/bp-activity-filters.php: bp_activity_edit_update_media() |
Update media and activity for media updation and deletion while editing the activity. |
bp-activity/bp-activity-filters.php: bp_activity_edit_update_document() |
Update document and activity for document updation and deletion while editing the activity. |
bp-document/classes/class-bp-document.php: BP_Document::get_folder_data() |
Convert document IDs to document objects, as expected in template loop. |
bp-document/bp-document-template.php: bp_get_document_link() |
Return the document link. |
bp-document/bp-document-template.php: bp_get_folder_link() |
Return the folder description. |
bp-document/bp-document-template.php: bp_get_folder_folder_link() | |
bp-document/bp-document-functions.php: bp_document_folder_bradcrumb() |
This function will give the breadcrumbs html. |
bp-templates/bp-nouveau/includes/document/ajax.php: bp_nouveau_ajax_document_folder_delete() |
Delete folder. |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_get_thread_messages() |
messages for each thread. |
bp-notifications/classes/class-bp-rest-notifications-endpoint.php: BP_REST_Notifications_Endpoint::bp_rest_get_notification_actions() |
Action to perform. |
bp-notifications/classes/class-bp-rest-notifications-endpoint.php: BP_REST_Notifications_Endpoint::bp_rest_link_url_update() |
Update Link URL after request accept/reject. |
bp-messages/classes/class-bp-rest-messages-endpoint.php: BP_REST_Messages_Endpoint::prepare_message_for_response() |
Prepares message data for the REST response. |
bp-messages/classes/class-bp-rest-messages-endpoint.php: BP_REST_Messages_Endpoint::prepare_item_for_response() |
Prepares thread data for return as an object. |
bp-groups/bp-groups-activity.php: bp_groups_format_activity_action_activity_update() |
Format groups ‘activity_update’ activity actions. |
bp-groups/classes/class-bp-rest-groups-endpoint.php: BP_REST_Groups_Endpoint::prepare_item_for_response() |
Prepares group data for return as an object. |
bp-activity/bp-activity-filters.php: bp_activity_media_add() |
Create media activity for each media uploaded |
bp-activity/bp-activity-filters.php: bp_activity_document_add() |
Create document activity for each document uploaded |
bp-activity/classes/class-bp-rest-activity-endpoint.php: BP_REST_Activity_Endpoint::prepare_links() |
Prepare links for the request. |
bp-forums/groups.php: BBP_Forums_Group_Extension::redirect_canonical() |
Ensure that forum content associated with a BuddyBoss group can only be viewed via the group URL. |
bp-forums/groups.php: BBP_Forums_Group_Extension::maybe_map_permalink_to_group() |
Maybe map a Forums forum/topic/reply permalink to the corresponding group |
bp-forums/groups.php: BBP_Forums_Group_Extension::new_topic_redirect_to() |
Redirect to the group forum screen |
bp-forums/groups.php: BBP_Forums_Group_Extension::new_reply_redirect_to() |
Redirect to the group forum screen |
bp-forums/groups.php: BBP_Forums_Group_Extension::edit_screen_save() |
Save the Group Forum data on edit |
bp-media/bp-media-template.php: bp_get_album_link() |
Return the album description. |
bp-groups/bp-groups-adminbar.php: bp_groups_group_admin_menu() |
Add the Group Admin top-level menu when viewing group pages. |
bp-groups/screens/single/admin/edit-details.php: groups_screen_group_admin_edit_details() |
Handle the display of a group’s admin/edit-details page. |
bp-groups/screens/single/admin/group-settings.php: groups_screen_group_admin_settings() |
Handle the display of a group’s admin/group-settings page. |
bp-groups/screens/single/admin/manage-members.php: groups_screen_group_admin_manage_members() |
This function handles actions related to member management on the group admin. |
bp-groups/screens/single/admin/membership-requests.php: groups_screen_group_admin_requests() |
Handle the display of Admin > Membership Requests. |
bp-groups/screens/single/invite.php: groups_screen_group_invite() |
Handle the display of a group’s Send Invites page. |
bp-groups/screens/single/members.php: groups_screen_group_members() |
Handle the display of a group’s Members page. |
bp-groups/actions/access.php: bp_groups_group_access_protection() |
Protect access to single groups. |
bp-groups/actions/feed.php: groups_action_group_feed() |
Load the activity feed for the current group. |
bp-groups/actions/join.php: groups_action_join_group() |
Catch and process “Join Group” button clicks. |
bp-groups/screens/single/admin.php: groups_screen_group_admin() |
Handle the display of a group’s Admin pages. |
bp-groups/screens/single/request-membership.php: groups_screen_group_request_membership() |
Handle the display of a group’s Request Membership page. |
bp-groups/actions/create.php: groups_action_create_group() |
Catch and process group creation form submissions. |
bp-groups/actions/leave-group.php: groups_action_leave_group() |
Catch and process “Leave Group” button clicks. |
bp-groups/classes/class-bp-group-extension.php: BP_Group_Extension::setup_display_hooks() |
Hook this extension’s group tab into BuddyPress, if necessary. |
bp-groups/classes/class-bp-group-extension.php: BP_Group_Extension::group_access_protection() |
Filter the access check in bp_groups_group_access_protection() for this extension. |
bp-groups/classes/class-bp-group-extension.php: BP_Group_Extension::setup_edit_hooks() |
Hook this extension’s Edit panel into BuddyPress, if necessary. |
bp-groups/classes/class-bp-groups-list-table.php: BP_Groups_List_Table::column_comment() |
Name column, and “quick admin” rollover actions. |
bp-groups/classes/class-bp-groups-group-members-template.php: BP_Groups_Group_Members_Template::__construct() |
Constructor. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_canonical_stack() |
Set up canonical stack for this component. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_nav() |
Set up component navigation. |
bp-groups/bp-groups-functions.php: groups_post_update() |
Post an Activity status update affiliated with a group. |
bp-groups/bp-groups-activity.php: bp_groups_membership_accepted_add_activity() |
Add an activity feed item when a member joins a group. |
bp-groups/bp-groups-activity.php: bp_groups_format_activity_action_created_group() |
Format ‘created_group’ activity actions. |
bp-groups/bp-groups-activity.php: bp_groups_format_activity_action_joined_group() |
Format ‘joined_group’ activity actions. |
bp-groups/bp-groups-activity.php: bp_groups_format_activity_action_group_details_updated() |
Format ‘group_details_updated’ activity actions. |
bp-groups/bp-groups-template.php: bp_get_groups_action_link() |
Get a URL for a group component action. |
bp-groups/bp-groups-template.php: bp_get_group_activity_feed_link() |
Return the current group activity-stream RSS URL. |
bp-groups/bp-groups-template.php: bp_get_group_invite_user_remove_invite_url() |
Get cancel invite url for displayed member group invite in loop. |
bp-groups/bp-groups-template.php: bp_get_group_request_reject_link() |
Get the reject group membership link. |
bp-groups/bp-groups-template.php: bp_get_group_request_accept_link() |
Get the accept group membership link. |
bp-groups/bp-groups-template.php: bp_get_group_avatar_delete_link() |
Get displayed group delete avatar url. |
bp-groups/bp-groups-template.php: bp_get_group_leave_reject_link() |
Generate the URL for rejecting a request to leave a group. |
bp-groups/bp-groups-template.php: bp_get_group_send_invite_form_action() |
Output the ‘action’ attribute for a group send invite form. |
bp-groups/bp-groups-template.php: bp_get_group_join_button() |
Return button to join a group. |
bp-groups/bp-groups-template.php: bp_get_group_leave_confirm_link() |
Generate the URL for confirming a request to leave a group. |
bp-groups/bp-groups-template.php: bp_get_group_member_remove_link() |
Generate a URL for removing a member from a group. |
bp-groups/bp-groups-template.php: bp_get_group_form_action() |
Generate the ‘action’ attribute for a group form. |
bp-groups/bp-groups-template.php: bp_get_group_admin_form_action() |
Generate the ‘action’ attribute for a group admin form. |
bp-groups/bp-groups-template.php: bp_get_group_member_promote_mod_link() |
Generate a URL for promoting a user to moderator. |
bp-groups/bp-groups-template.php: bp_get_group_member_promote_admin_link() |
Generate a URL for promoting a user to admin. |
bp-groups/bp-groups-template.php: bp_get_group_member_demote_link() |
Generate a URL for demoting a user to member. |
bp-groups/bp-groups-template.php: bp_get_group_member_ban_link() |
Generate a URL for banning a member from a group. |
bp-groups/bp-groups-template.php: bp_get_group_member_unban_link() |
Generate a URL for unbanning a member from a group. |
bp-groups/bp-groups-template.php: bp_get_group_forum_permalink() |
Generate the URL of the Forum page of a group. |
bp-groups/bp-groups-template.php: bp_get_group_all_members_permalink() |
Return the permalink of the Members page of the current group in the loop. |
bp-groups/bp-groups-template.php: bp_get_group_admin_permalink() |
Return the permalink for the admin section of the current group in the loop. |
bp-groups/bp-groups-template.php: bp_get_group_link() |
Return an HTML-formatted link for the current group in the loop. |
bp-groups/bp-groups-template.php: bp_group_permalink() |
Output the permalink for the current group in the loop. |
bp-groups/bp-groups-notifications.php: groups_notification_group_updated() |
Notify all group members when a group is updated. |
bp-groups/bp-groups-notifications.php: groups_notification_new_membership_request() |
Notify group admin about new membership request. |
bp-groups/bp-groups-notifications.php: groups_notification_membership_request_completed() |
Notify member about their group membership request. |
bp-groups/bp-groups-notifications.php: groups_notification_promoted_member() |
Notify group member they have been promoted. |
bp-groups/bp-groups-notifications.php: groups_notification_group_invites() |
Notify a member they have been invited to a group. |
bp-groups/bp-groups-notifications.php: groups_format_notifications() |
Format notifications for the Groups component. |
bp-integrations/learndash/buddypress/Core.php: Core::subMenuLink() |
Returns the link to the selected sub menu |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_album_save() |
Save album |
bp-templates/bp-nouveau/includes/media/ajax.php: bp_nouveau_ajax_media_album_delete() |
Delete album |
bp-templates/bp-nouveau/includes/messages/ajax.php: bp_nouveau_ajax_get_user_message_threads() |
AJAX get all user message threads. |
bp-templates/bp-nouveau/includes/groups/ajax.php: bp_nouveau_ajax_joinleave_group() |
Join or leave a group when clicking the “join/leave” button via a POST request. |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_group_setup_nav() |
Setup group invite navigation menu item. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_customizer_link() |
Get a link to reach a specific section into the customizer |
bp-core/deprecated/buddypress/2.1.php: bp_groups_adminbar_admin_menu() |
Add menu items to the BuddyBar. |
bp-core/classes/class-bp-email-tokens.php: BP_Email_Tokens::token__group_card_small() |
Generate the output for token group.small_card |
bp-core/classes/class-bp-email-tokens.php: BP_Email_Tokens::token__group_card() |
Generate the output for token group.card |
bp-core/gdpr/class-bp-group-export.php: BP_Group_Export::process_data() |
Export member created groups. |
bp-core/gdpr/class-bp-group-membership-export.php: BP_Group_Membership_Export::process_data() |
Export member group memberships. |
bp-activity/screens/permalink.php: bp_activity_action_permalink_router() |
Catch and route requests for single activity item permalinks. |
bp-activity/bp-activity-template.php: bp_get_activity_secondary_avatar() |
Return the avatar of the object that action was performed on. |
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.