bp_acomment_name

  • apply_filters( 'bp_acomment_name', $activities_template->activity->current_comment->user_fullname, $activities_template->activity->current_comment )

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-template.php :: Trac Source Line: 1538
      	 * @global object $activities_template {@link BP_Activity_Template}
      	 * @uses apply_filters() To call the 'bp_acomment_name' hook
      	 * @uses apply_filters() To call the 'bp_activity_comment_name' hook
      	 *
      	 * @return string $name The full name of the activity comment author
      	 */
      	function bp_get_activity_comment_name() {
      		global $activities_template;
      
      		$name = apply_filters( 'bp_acomment_name', $activities_template->activity->current_comment->user_fullname, $activities_template->activity->current_comment ); // backward compatibility
      
      		return apply_filters( 'bp_activity_comment_name', $name );
      	}
      
      /**
       * Echoes the date_recorded of the activity comment currently being displayed
       *
       * @since 1.5.0
       *
       * @uses bp_get_activity_comment_date_recorded()
      

Hook: add_filter: bp_acomment_name instances (1)

  • add_filter( 'bp_acomment_name',                      'stripslashes_deep' )
    $tag: bp_acomment_name
    $function_to_add: stripslashes_deep
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 67
      add_filter( 'bp_get_activity_action',                'make_clickable', 9 );
      add_filter( 'bp_get_activity_content_body',          'make_clickable', 9 );
      add_filter( 'bp_get_activity_content',               'make_clickable', 9 );
      add_filter( 'bp_get_activity_parent_content',        'make_clickable', 9 );
      add_filter( 'bp_get_activity_latest_update',         'make_clickable', 9 );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'make_clickable', 9 );
      add_filter( 'bp_get_activity_feed_item_description', 'make_clickable', 9 );
      
      add_filter( 'bp_acomment_name',                      'stripslashes_deep' );
      add_filter( 'bp_get_activity_action',                'stripslashes_deep' );
      add_filter( 'bp_get_activity_content',               'stripslashes_deep' );
      add_filter( 'bp_get_activity_content_body',          'stripslashes_deep' );
      add_filter( 'bp_get_activity_parent_content',        'stripslashes_deep' );
      add_filter( 'bp_get_activity_latest_update',         'stripslashes_deep' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_activity_feed_item_description', 'stripslashes_deep' );
      
      // Apply BuddyPress defined filters
      add_filter( 'bp_get_activity_content',               'bp_activity_make_nofollow_filter' );
      

Comments are closed.