Contents
bp_current_action()
Return the name of the current action.
Description
Return
(string) Action name.
Source
File: bp-core/bp-core-template.php
function bp_current_action() { $bp = buddypress(); $current_action = !empty( $bp->current_action ) ? $bp->current_action : ''; /** * Filters the name of the current action. * * @since BuddyPress 1.0.0 * * @param string $current_action Current action. */ return apply_filters( 'bp_current_action', $current_action ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Related
Uses
Uses | Description |
---|---|
bp-loader.php: buddypress() |
The main function responsible for returning the one true BuddyBoss Instance to functions everywhere. |
bp-core/bp-core-template.php: bp_current_action |
Filters the name of the current action. |
Used By | Description |
---|---|
bp-core/bp-core-template.php: bp_is_activity_edit() |
Is the current page a single activity item edit permalink? |
bp-document/classes/class-bp-document-theme-compat.php: BP_Document_Theme_Compat::is_document() |
Set up the theme compatibility hooks, if we’re looking at an document page. |
bp-document/classes/class-bp-document-component.php: BP_Document_Component::late_includes() |
Late includes method. |
bp-core/bp-core-template.php: bp_is_document_directory() |
Is the current page the media directory? |
bp-core/bp-core-template.php: bp_is_single_folder() |
Is the current page a single folder item permalink? |
bp-core/bp-core-template.php: bp_is_single_document() |
Is the current page a single document item permalink? |
bp-core/compatibility/bp-incompatible-plugins-helper.php: bp_core_fix_forums_subscriptions_tab() |
Fix forums subscription tab in user’s profile. |
bp-activity/bp-activity-functions.php: bp_activity_default_scope() |
Get default scope for the activity |
bp-settings/classes/class-bp-settings-component.php: BP_Settings_Component::late_includes() |
Late includes method. |
bp-forums/members.php: BBP_BuddyPress_Members::user_profile_url() |
Override Forums profile URL with BuddyBoss profile URL |
bp-media/classes/class-bp-media-theme-compat.php: BP_Media_Theme_Compat::is_media() |
Set up the theme compatibility hooks, if we’re looking at an media page. |
bp-media/classes/class-bp-media-component.php: BP_Media_Component::late_includes() |
Late includes method. |
bp-notifications/actions/bulk-manage.php: bp_notifications_action_bulk_manage() |
Handles bulk management (mark as read/unread, delete) of notifications. |
bp-notifications/actions/delete.php: bp_notifications_action_delete() |
Handle deleting single notifications. |
bp-blogs/bp-blogs-template.php: bp_blogs_blog_tabs() |
Output navigation tabs for a user Blogs page. |
bp-blogs/classes/class-bp-blogs-theme-compat.php: BP_Blogs_Theme_Compat::is_blogs() |
Are we looking at something that needs Blogs theme compatibility? |
bp-xprofile/bp-xprofile-filters.php: xprofile_filter_field_edit_name() |
Conditionally filters ‘bp_get_the_profile_field_name’ to return alternate name if available. |
bp-xprofile/classes/class-bp-xprofile-component.php: BP_XProfile_Component::late_includes() |
Late includes method. |
bp-xprofile/bp-xprofile-repeaters.php: bp_print_add_repeater_set_button() |
Output button to add repeater field set. |
bp-messages/actions/bulk-delete.php: messages_action_bulk_delete() |
Process a request to bulk delete messages. |
bp-messages/actions/bulk-manage-star.php: bp_messages_star_bulk_manage_handler() |
Bulk manage handler to set the star status for multiple messages. |
bp-messages/actions/star.php: bp_messages_star_action_handler() |
Action handler to set a message’s star status for those not using JS. |
bp-messages/actions/unread.php: bp_messages_action_mark_unread() |
Handle marking a single message thread as unread. |
bp-messages/actions/bulk-manage.php: bp_messages_action_bulk_manage() |
Handle bulk management (mark as read/unread, delete) of message threads. |
bp-messages/actions/delete.php: messages_action_delete_message() |
Process a request to delete a message. |
bp-messages/actions/read.php: bp_messages_action_mark_read() |
Handle marking a single message thread as read. |
bp-messages/classes/class-bp-messages-component.php: BP_Messages_Component::late_includes() |
Late includes method. |
bp-messages/bp-messages-template.php: bp_messages_options() |
Output the markup for the message type dropdown. |
bp-messages/bp-messages-template.php: bp_get_messages_form_action() |
Return the form action for Messages HTML forms. |
bp-messages/bp-messages-template.php: bp_get_the_message_thread_mark_read_url() |
Return the URL used for marking a single message thread as read. |
bp-messages/bp-messages-template.php: bp_get_the_message_thread_mark_unread_url() |
Return the URL used for marking a single message thread as unread. |
bp-messages/bp-messages-template.php: bp_get_message_thread_delete_link() |
Generate the URL for deleting the current thread. |
bp-messages/bp-messages-template.php: bp_has_message_threads() |
Retrieve private message threads for display in inbox/sentbox/notices. |
bp-groups/screens/user/invites.php: groups_screen_group_invites() |
Handle the loading of a user’s Groups > Invites page. |
bp-groups/screens/single/invite.php: groups_screen_group_invite() |
Handle the display of a group’s Send Invites page. |
bp-groups/classes/class-bp-groups-theme-compat.php: BP_Groups_Theme_Compat::single_template_hierarchy() |
Add custom template hierarchy to theme compat for group pages. |
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::late_includes() |
Late includes method. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_globals() |
Set up component global data. |
bp-groups/classes/class-bp-groups-component.php: BP_Groups_Component::setup_canonical_stack() |
Set up canonical stack for this component. |
bp-members/screens/register.php: bp_core_screen_signup() |
Handle the loading of the signup screen. |
bp-members/classes/class-bp-members-theme-compat.php: BP_Members_Theme_Compat::is_members() |
Are we looking at something that needs members theme compatibility? |
bp-members/classes/class-bp-members-theme-compat.php: BP_Members_Theme_Compat::single_template_hierarchy() |
Add custom template hierarchy to theme compat for member pages. |
bp-members/classes/class-bp-members-component.php: BP_Members_Component::setup_canonical_stack() |
Set up canonical stack for this component. |
bp-members/bp-members-template.php: bp_get_current_activation_key() |
Get the activation key from the current request URL. |
bp-invites/classes/class-bp-invites-component.php: BP_Invites_Component::late_includes() |
Late includes method. |
bp-friends/screens/requests.php: friends_screen_requests() |
Catch and process the Requests page. |
bp-friends/classes/class-bp-friends-component.php: BP_Friends_Component::late_includes() |
Late includes method. |
bp-integrations/learndash/buddypress/Core.php: Core::subMenuLink() |
Returns the link to the selected sub menu |
bp-templates/bp-nouveau/includes/activity/template-tags.php: bp_nouveau_activity_member_post_form() |
Display the displayed user activity post form if needed |
bp-templates/bp-nouveau/includes/activity/functions.php: bp_nouveau_activity_localize_scripts() |
Localize the strings needed for the Activity Post form UI |
bp-templates/bp-nouveau/includes/groups/functions.php: bp_nouveau_groups_screen_invites_restriction() |
Group invites restriction screen. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_current_object() |
Get the current component or action. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_search_objects() |
Get The list of search objects (primary + secondary). |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_single_item_subnav_classes() |
Returns the single item subnav container classes. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_nav_classes() |
Retrieve a space separated list of classes for the current nav item. |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_after_loop() |
Template tag to wrap the after component loop |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_pagination() |
Pagination for loops |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_get_loop_classes() |
Get the component’s loop classes |
bp-templates/bp-nouveau/includes/template-tags.php: bp_nouveau_before_loop() |
Template tag to wrap the before component loop |
bp-templates/bp-nouveau/includes/ajax.php: bp_nouveau_ajax_object_template_loader() |
Load the template loop for the current object. |
bp-templates/bp-nouveau/includes/functions.php: bp_nouveau_ajax_querystring() |
This function looks scarier than it actually is. 🙂 Each object loop (activity/members/groups/blogs/forums) contains default parameters to show specific information based on the page we are currently looking at. |
bp-templates/bp-nouveau/includes/notifications/template-tags.php: bp_nouveau_notifications_sort_order_links() |
Outputs the order action links. |
bp-core/deprecated/buddypress/3.0.php: bp_core_action_set_spammer_status() |
Catch a “Mark as Spammer/Not Spammer” click from the toolbar. |
bp-core/bp-core-template.php: bp_get_title_parts() |
Get the title parts of the BuddyPress displayed page |
bp-core/bp-core-template.php: bp_get_the_body_class() |
Customize the body class, according to the currently displayed BP content. |
bp-core/bp-core-template.php: bp_is_messages_inbox() |
Is the current page a user’s Messages Inbox? |
bp-core/bp-core-template.php: bp_is_blogs_directory() |
Is the current page the blogs directory ? |
bp-core/bp-core-template.php: bp_is_media_directory() |
Is the current page the media directory? |
bp-core/bp-core-template.php: bp_is_single_album() |
Is the current page a single album item permalink? |
bp-core/bp-core-template.php: bp_is_groups_directory() |
Is the current page the groups directory? |
bp-core/bp-core-template.php: bp_is_group_home() |
Is the current page a single group’s home page? |
bp-core/bp-core-template.php: bp_is_activity_directory() |
Is the current page the activity directory? |
bp-core/bp-core-template.php: bp_is_single_activity() |
Is the current page a single activity item permalink? |
bp-core/bp-core-template.php: bp_is_current_action() |
Check to see whether the current page matches a given action. |
bp-core/bp-core-template.php: bp_get_options_nav() |
Output the “options nav”, the secondary-level single item navigation menu. |
bp-core/bp-core-buddybar.php: bp_core_register_nav_screen_function() |
Register a screen function for an item in the main nav array. |
bp-core/bp-core-buddybar.php: bp_core_new_nav_default() |
Modify the default subnav item that loads when a top level nav item is clicked. |
bp-core/bp-core-buddybar.php: bp_core_register_subnav_screen_function() |
Register a screen function, whether or not a related subnav link exists. |
bp-core/bp-core-cssjs.php: bp_core_add_jquery_mask() |
Enqueues jquery.mask.js on BuddyPress pages. |
bp-core/bp-core-catchuri.php: bp_get_canonical_url() |
Get the canonical URL of the current page. |
bp-activity/bp-activity-adminbar.php: bp_activity_admin_menu() |
Add the Activity top-level menu link when viewing single activity item. |
bp-activity/screens/permalink.php: bp_activity_screen_single_activity_permalink() |
Load the page for a single activity item. |
bp-activity/bp-activity-filters.php: bp_activity_display_all_types_on_just_me() |
Returns $args to force display of all member activity types on members activity feed. |
bp-activity/classes/class-bp-activity-component.php: BP_Activity_Component::late_includes() |
Late includes method. |
bp-activity/classes/class-bp-activity-theme-compat.php: BP_Activity_Theme_Compat::is_activity() |
Set up the theme compatibility hooks, if we’re looking at an activity page. |
bp-activity/bp-activity-template.php: bp_get_member_activity_feed_link() |
Return the member activity feed link. |
bp-activity/bp-activity-template.php: bp_get_activity_delete_url() |
Return the URL to delete a single activity item. |
bp-activity/bp-activity-template.php: bp_get_activity_delete_link() |
Return the activity delete link. |
bp-activity/bp-activity-template.php: bp_get_activity_permalink_id() |
Return the activity permalink ID. |
bp-activity/bp-activity-template.php: bp_has_activities() |
Initialize the activity loop. |
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.