-
apply_filters( 'bbp_get_user_subscribe_link', $html, $args, $user_id, $topic_id )
Source Reference:
-
$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' )
Source Reference:
-
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' )
Source Reference:
-
// 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 );
-