-
apply_filters( 'bbp_get_topic_content', $content, $topic_id )
Source Reference:
-
function bbp_get_topic_content( $topic_id = 0 ) { $topic_id = bbp_get_topic_id( $topic_id ); // Check if password is required if ( post_password_required( $topic_id ) ) return get_the_password_form(); $content = get_post_field( 'post_content', $topic_id ); return apply_filters( 'bbp_get_topic_content', $content, $topic_id ); } /** * Output the excerpt of the topic * * @since bbPress (r2780) * * @param int $topic_id Optional. Topic id * @param int $length Optional. Length of the excerpt. Defaults to 100 letters * @uses bbp_get_topic_excerpt() To get the topic excerpt
-
Hook: add_filter: bbp_get_topic_content instances (9)
-
add_filter( 'bbp_get_topic_content', 'capital_P_dangit' )
Source Reference:
-
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 ); add_filter( 'bbp_get_reply_content', 'wpautop', 30 ); // Run filters on topic content add_filter( 'bbp_get_topic_content', 'capital_P_dangit' ); add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 );
-
-
add_filter( 'bbp_get_topic_content', 'wptexturize', 3 )
Source Reference:
-
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 ); add_filter( 'bbp_get_reply_content', 'wpautop', 30 ); // Run filters on topic content add_filter( 'bbp_get_topic_content', 'capital_P_dangit' ); add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 );
-
-
add_filter( 'bbp_get_topic_content', 'convert_chars', 5 )
Source Reference:
-
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 ); add_filter( 'bbp_get_reply_content', 'wpautop', 30 ); // Run filters on topic content add_filter( 'bbp_get_topic_content', 'capital_P_dangit' ); add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 ); // Canonical
-
-
add_filter( 'bbp_get_topic_content', 'make_clickable', 9 )
Source Reference:
-
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 ); add_filter( 'bbp_get_reply_content', 'wpautop', 30 ); // Run filters on topic content add_filter( 'bbp_get_topic_content', 'capital_P_dangit' ); add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 ); // Canonical add_filter( 'redirect_canonical', 'bbp_redirect_canonical' );
-
-
add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 )
Source Reference:
-
add_filter( 'bbp_get_reply_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_reply_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_reply_content', 'wpautop', 30 ); // Run filters on topic content add_filter( 'bbp_get_topic_content', 'capital_P_dangit' ); add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 ); // Canonical add_filter( 'redirect_canonical', 'bbp_redirect_canonical' );
-
-
add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 )
Source Reference:
-
add_filter( 'bbp_get_reply_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_reply_content', 'wpautop', 30 ); // Run filters on topic content add_filter( 'bbp_get_topic_content', 'capital_P_dangit' ); add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 ); // Canonical add_filter( 'redirect_canonical', 'bbp_redirect_canonical' ); // Login/Register/Lost Password
-
-
add_filter( 'bbp_get_topic_content', 'wpautop', 30 )
Source Reference:
-
add_filter( 'bbp_get_reply_content', 'wpautop', 30 ); // Run filters on topic content add_filter( 'bbp_get_topic_content', 'capital_P_dangit' ); add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 ); // Canonical add_filter( 'redirect_canonical', 'bbp_redirect_canonical' ); // Login/Register/Lost Password add_filter( 'login_redirect', 'bbp_redirect_login', 2, 3 );
-
-
add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 )
Source Reference:
-
add_filter( 'bbp_get_topic_content', 'wptexturize', 3 ); add_filter( 'bbp_get_topic_content', 'convert_chars', 5 ); add_filter( 'bbp_get_topic_content', 'make_clickable', 9 ); add_filter( 'bbp_get_topic_content', 'force_balance_tags', 25 ); add_filter( 'bbp_get_topic_content', 'convert_smilies', 20 ); add_filter( 'bbp_get_topic_content', 'wpautop', 30 ); // Revisions add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions', 1, 2 ); add_filter( 'bbp_get_topic_content', 'bbp_topic_content_append_revisions', 1, 2 ); // Canonical add_filter( 'redirect_canonical', 'bbp_redirect_canonical' ); // Login/Register/Lost Password add_filter( 'login_redirect', 'bbp_redirect_login', 2, 3 ); add_filter( 'logout_url', 'bbp_logout_url', 2, 2 ); // Fix post author id for anonymous posts (set it back to 0) when the post status is changed add_filter( 'wp_insert_post_data', 'bbp_fix_post_author', 30, 2 );
-
-
add_filter( 'bbp_get_topic_content', 'wp_kses_data' )
Source Reference:
-
* to the permalink structure have taken place. This fixes the issue of * permalinks not being flushed properly when a bbPress update occurs. */ add_action( 'bbp_admin_init', 'bbp_setup_updater', 999 ); /** Filters ***************************************************************/ // Run wp_kses_data on topic/reply content in admin section add_filter( 'bbp_get_reply_content', 'wp_kses_data' ); add_filter( 'bbp_get_topic_content', 'wp_kses_data' ); } /** * Plugin Dependency * * The purpose of the following actions is to mimic the behavior of something * called 'plugin dependency' which enables a plugin to have plugins of their * own in a safe and reliable way. * * We do this in bbPress by mirroring existing WordPress actions in many places
-