bbp_get_user_profile_link

  • apply_filters( 'bbp_get_user_profile_link', $user_link, $user_id )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 222
      	 */
      	function bbp_get_user_profile_link( $user_id = 0 ) {
      		if ( !$user_id = bbp_get_user_id( $user_id ) )
      			return false;
      
      		$user      = get_userdata( $user_id );
      		$name      = esc_attr( $user->display_name );
      		$user_link = '<a href="' . bbp_get_user_profile_url( $user_id ) . '" title="' . $name . '">' . $name . '</a>';
      
      		return apply_filters( 'bbp_get_user_profile_link', $user_link, $user_id );
      	}
      
      /**
       * Output URL to the profile page of a user
       *
       * @since bbPress (r2688)
       *
       * @param int $user_id Optional. User id
       * @param string $user_nicename Optional. User nicename
       * @uses bbp_get_user_profile_url() To get user profile url
      
  • apply_filters( 'bbp_get_user_profile_link', $edit_link, $user_id )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 320
      	 * @return string User profile edit link
      	 */
      	function bbp_get_user_profile_edit_link( $user_id = 0 ) {
      		if ( !$user_id = bbp_get_user_id( $user_id ) )
      			return false;
      
      		$user      = get_userdata( $user_id );
      		$name      = $user->display_name;
      		$edit_link = '<a href="' . bbp_get_user_profile_url( $user_id ) . '" title="' . esc_attr( $name ) . '">' . $name . '</a>';
      		return apply_filters( 'bbp_get_user_profile_link', $edit_link, $user_id );
      	}
      
      /**
       * Output URL to the profile edit page of a user
       *
       * @since bbPress (r2688)
       *
       * @param int $user_id Optional. User id
       * @param string $user_nicename Optional. User nicename
       * @uses bbp_get_user_profile_edit_url() To get user profile edit url
      

Hook: add_filter: bbp_get_user_profile_link instances (2)

  • add_filter( 'bbp_get_user_profile_link',      'wp_rel_nofollow' )
    $tag: bbp_get_user_profile_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: 317
      // 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    );
      add_filter( 'bbp_get_reply_content', 'convert_chars',      5    );
      add_filter( 'bbp_get_reply_content', 'make_clickable',     9    );
      add_filter( 'bbp_get_reply_content', 'force_balance_tags', 25   );
      
  • add_filter( 'bbp_get_user_profile_link',      'stripslashes'    )
    $tag: bbp_get_user_profile_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: 318
      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    );
      add_filter( 'bbp_get_reply_content', 'convert_chars',      5    );
      add_filter( 'bbp_get_reply_content', 'make_clickable',     9    );
      add_filter( 'bbp_get_reply_content', 'force_balance_tags', 25   );
      add_filter( 'bbp_get_reply_content', 'convert_smilies',    20   );
      

Comments are closed.