[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Activity: User's "Activity > Mentions" screen handler 4 * 5 * @package BuddyPress 6 * @subpackage ActivityScreens 7 * @since 3.0.0 8 */ 9 10 /** 11 * Load the 'Mentions' activity page. 12 * 13 * @since 1.2.0 14 */ 15 function bp_activity_screen_mentions() { 16 bp_update_is_item_admin( bp_current_user_can( 'bp_moderate' ), 'activity' ); 17 18 /** 19 * Fires right before the loading of the "Mentions" screen template file. 20 * 21 * @since 1.2.0 22 */ 23 do_action( 'bp_activity_screen_mentions' ); 24 25 /** 26 * Filters the template to load for the "Mentions" screen. 27 * 28 * @since 1.2.0 29 * 30 * @param string $template Path to the activity template to load. 31 */ 32 bp_core_load_template( apply_filters( 'bp_activity_template_mention_activity', 'members/single/home' ) ); 33 } 34 35 /** 36 * Reset the logged-in user's new mentions data when he visits his mentions screen. 37 * 38 * @since 1.5.0 39 * 40 */ 41 function bp_activity_reset_my_new_mentions() { 42 if ( bp_is_my_profile() ) 43 bp_activity_clear_new_mentions( bp_loggedin_user_id() ); 44 } 45 add_action( 'bp_activity_screen_mentions', 'bp_activity_reset_my_new_mentions' );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:57 2024 | Cross-referenced by PHPXref 0.7.1 |