bbp_get_user_subscribe_link

  • apply_filters( 'bbp_get_user_subscribe_link', $html, $args, $user_id, $topic_id )

    Source Reference:

    • Component: bbPress :: bbp-user
      File: /bbp-includes/bbp-user-template.php :: Trac Source Line: 707
      			$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( $query_args, $permalink ), 'toggle-subscription_' . $topic_id ) );
      		$is_subscribed = $is_subscribed ? 'is-subscribed' : '';
      		$html          = '<span id="subscription-toggle">' . $before . '<span id="subscribe-' . $topic_id . '" class="' . $is_subscribed . '"><a href="' . $url . '" class="dim:subscription-toggle:subscribe-' . $topic_id . ':is-subscribed">' . $text . '</a></span>' . $after . '</span>';
      
      		// Return the link
      		return apply_filters( 'bbp_get_user_subscribe_link', $html, $args, $user_id, $topic_id );
      	}
      
      /** Edit User *****************************************************************/
      
      /**
       * Edit profile success message
       *
       * @since bbPress (r2688)
       *
      

Hook: add_filter: bbp_get_user_subscribe_link instances (2)

  • add_filter( 'bbp_get_user_subscribe_link',    'wp_rel_nofollow' )
    $tag: bbp_get_user_subscribe_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: 315
      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    );
      add_filter( 'bbp_get_reply_content', 'convert_chars',      5    );
      
  • add_filter( 'bbp_get_user_subscribe_link',    'stripslashes'    )
    $tag: bbp_get_user_subscribe_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: 316
      // 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    );
      

Comments are closed.