bbp_get_user_favorites_link

  • apply_filters( 'bbp_get_user_favorites_link', $html, $add, $rem, $user_id, $topic_id )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 591
      			$permalink = bbp_get_topic_permalink( $topic_id );
      		elseif ( bbp_is_query_name( 'bbp_single_topic' ) )
      			$permalink = get_permalink();
      
      		$url       = esc_url( wp_nonce_url( add_query_arg( $favs, $permalink ), 'toggle-favorite_' . $topic_id ) );
      		$is_fav    = $is_fav ? 'is-favorite' : '';
      		$html      = '<span id="favorite-toggle"><span id="favorite-' . $topic_id . '" class="' . $is_fav . '">' . $pre . '<a href="' . $url . '" class="dim:favorite-toggle:favorite-' . $topic_id . ':is-favorite">' . $mid . '</a>' . $post . '</span></span>';
      
      		// Return the link
      		return apply_filters( 'bbp_get_user_favorites_link', $html, $add, $rem, $user_id, $topic_id );
      	}
      
      /** Subscriptions *************************************************************/
      
      /**
       * Output the link to the user's subscriptions page (profile page)
       *
       * @since bbPress (r2688)
       *
       * @param int $user_id Optional. User id
      

Hook: add_filter: bbp_get_user_favorites_link instances (2)

  • add_filter( 'bbp_get_user_favorites_link',    'wp_rel_nofollow' )
    $tag: bbp_get_user_favorites_link
    $function_to_add: wp_rel_nofollow
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 313
      // Add number format filter to functions requiring numeric output
      add_filter( 'bbp_get_forum_topic_count',       'bbp_number_format' );
      add_filter( 'bbp_get_forum_topic_reply_count', 'bbp_number_format' );
      
      // No follow and stripslashes on user profile links
      add_filter( 'bbp_get_reply_author_link',      'wp_rel_nofollow' );
      add_filter( 'bbp_get_reply_author_link',      'stripslashes'    );
      add_filter( 'bbp_get_topic_author_link',      'wp_rel_nofollow' );
      add_filter( 'bbp_get_topic_author_link',      'stripslashes'    );
      add_filter( 'bbp_get_user_favorites_link',    'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_favorites_link',    'stripslashes'    );
      add_filter( 'bbp_get_user_subscribe_link',    'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_subscribe_link',    'stripslashes'    );
      add_filter( 'bbp_get_user_profile_link',      'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_profile_link',      'stripslashes'    );
      add_filter( 'bbp_get_user_profile_edit_link', 'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_profile_edit_link', 'stripslashes'    );
      
      // Run filters on reply content
      add_filter( 'bbp_get_reply_content', 'capital_P_dangit'         );
      
  • add_filter( 'bbp_get_user_favorites_link',    'stripslashes'    )
    $tag: bbp_get_user_favorites_link
    $function_to_add: stripslashes
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 314
      add_filter( 'bbp_get_forum_topic_count',       'bbp_number_format' );
      add_filter( 'bbp_get_forum_topic_reply_count', 'bbp_number_format' );
      
      // No follow and stripslashes on user profile links
      add_filter( 'bbp_get_reply_author_link',      'wp_rel_nofollow' );
      add_filter( 'bbp_get_reply_author_link',      'stripslashes'    );
      add_filter( 'bbp_get_topic_author_link',      'wp_rel_nofollow' );
      add_filter( 'bbp_get_topic_author_link',      'stripslashes'    );
      add_filter( 'bbp_get_user_favorites_link',    'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_favorites_link',    'stripslashes'    );
      add_filter( 'bbp_get_user_subscribe_link',    'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_subscribe_link',    'stripslashes'    );
      add_filter( 'bbp_get_user_profile_link',      'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_profile_link',      'stripslashes'    );
      add_filter( 'bbp_get_user_profile_edit_link', 'wp_rel_nofollow' );
      add_filter( 'bbp_get_user_profile_edit_link', 'stripslashes'    );
      
      // Run filters on reply content
      add_filter( 'bbp_get_reply_content', 'capital_P_dangit'         );
      add_filter( 'bbp_get_reply_content', 'wptexturize',        3    );
      

Comments are closed.