bp_get_group_permalink( BP_Groups_Group|null $group = null )
Return the permalink for the current group in the loop.
Parameters #Parameters
- $group
-
(BP_Groups_Group|null) (Optional) Group object. Default: current group in loop.
Default value: null
Return #Return
(string)
Source #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 1.0.0 * @since 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 ); }
Expand full source code Collapse full source code View on Trac
Related #Related
Uses #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 #Used By
Used By | Description |
---|---|
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. |
cli/src/group.php: Group::create() |
Create a group. |
cli/src/group.php: Group::get() |
Get a group. |
cli/src/activity.php: Activity::generate_item_details() |
Generate item details. |
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-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_group_setup_nav() | |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_joinleave_group() |
Join or leave a group when clicking the “join/leave” button via a POST request. |
bp-templates/bp-legacy/buddypress-functions.php: bp_legacy_theme_ajax_invite_user() |
Invites a friend to join a group via a POST request. |
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-groups/bp-groups-notifications.php: groups_notification_group_updated() |
Notify all group members when a group is updated. |
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-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/classes/class-bp-rest-groups-endpoint.php: BP_REST_Groups_Endpoint::prepare_item_for_response() |
Prepares group data for return as an object. |
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-group-members-template.php: BP_Groups_Group_Members_Template::__construct() |
Constructor. |
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() | |
bp-groups/bp-groups-template.php: bp_get_group_request_reject_link() | |
bp-groups/bp-groups-template.php: bp_get_group_request_accept_link() | |
bp-groups/bp-groups-template.php: bp_get_group_avatar_delete_link() | |
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_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_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_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_member_remove_link() |
Generate a URL for removing a member from a group. |
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_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_link() |
Return an HTML-formatted link for 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_group_permalink() |
Output the permalink for the current group in the loop. |
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/edit-details.php: groups_screen_group_admin_edit_details() |
Handle the display of a group’s admin/edit-details page. |
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.php: groups_screen_group_admin() |
Handle the display of a group’s Admin pages. |
bp-groups/screens/single/admin/membership-requests.php: groups_screen_group_admin_requests() |
Handle the display of Admin > Membership Requests. |
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/bp-groups-blocks.php: bp_groups_render_group_block() |
Callback function to render the BP Group Block. |
bp-groups/bp-groups-blocks.php: bp_groups_render_groups_block() |
Callback function to render the BP Groups Block. |
bp-groups/screens/single/request-membership.php: groups_screen_group_request_membership() |
Handle the display of a group’s Request Membership page. |
bp-groups/screens/single/send-invites.php: groups_screen_group_invite() |
Handle the display of a group’s Send Invites page. |
bp-groups/bp-groups-activity.php: bp_groups_membership_accepted_add_activity() |
Add an activity stream 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-activity.php: bp_groups_format_activity_action_group_activity_update() |
Format the action for activity updates posted in a Group. |
bp-groups/bp-groups-functions.php: bp_groups_pending_sent_invitations_personal_data_exporter() |
Finds and exports data on pending group invitations sent by a user associated with an email address. |
bp-groups/bp-groups-functions.php: bp_groups_pending_received_invitations_personal_data_exporter() |
Finds and exports data on pending group invitations received by a user associated with an email address. |
bp-groups/actions/leave-group.php: groups_action_leave_group() |
Catch and process “Leave Group” button clicks. |
bp-groups/actions/join.php: groups_action_join_group() |
Catch and process “Join Group” button clicks. |
bp-groups/actions/feed.php: groups_action_group_feed() |
Load the activity feed for the current group. |
bp-groups/actions/access.php: bp_groups_group_access_protection() |
Protect access to single groups. |
bp-groups/actions/create.php: groups_action_create_group() |
Catch and process group creation form submissions. |
bp-groups/bp-groups-functions.php: bp_groups_memberships_personal_data_exporter() |
Finds and exports group membership data associated with an email address. |
bp-groups/bp-groups-functions.php: bp_groups_pending_requests_personal_data_exporter() |
Finds and exports data on pending group membership requests associated with an email address. |
bp-themes/bp-default/_inc/ajax.php: bp_dtheme_ajax_joinleave_group() |
Join or leave a group when clicking the “join/leave” button via a POST request. |
Changelog #Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |