Changeset 7193 for trunk/bp-activity/bp-activity-functions.php
- Timestamp:
- 06/09/2013 02:04:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-functions.php
r7115 r7193 26 26 27 27 return (bool) !empty( $bp->pages->activity->id ); 28 } 29 30 /** 31 * Are mentions enabled or disabled? 32 * 33 * The Mentions feature does a number of things, all of which will be turned 34 * off if you disable mentions: 35 * - Detecting and auto-linking @username in all BP/WP content 36 * - Sending BP notifications and emails to users when they are mentioned 37 * using the @username syntax 38 * - The Public Message button on user profiles 39 * 40 * Mentions are enabled by default. To disable, put the following line in 41 * bp-custom.php or your theme's functions.php file: 42 * 43 * add_filter( 'bp_activity_do_mentions', '__return_false' ); 44 * 45 * @since BuddyPress (1.8) 46 * 47 * @uses apply_filters() To call 'bp_activity_do_mentions' hook. 48 * @return bool $retval True to enable mentions, false to disable. 49 */ 50 function bp_activity_do_mentions() { 51 return (bool) apply_filters( 'bp_activity_do_mentions', true ); 28 52 } 29 53
Note: See TracChangeset
for help on using the changeset viewer.