bbp_get_reply_content

  • apply_filters( 'bbp_get_reply_content', $content, $reply_id )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 476
      	function bbp_get_reply_content( $reply_id = 0 ) {
      		$reply_id = bbp_get_reply_id( $reply_id );
      
      		// Check if password is required
      		if ( post_password_required( $reply_id ) )
      			return get_the_password_form();
      
      		$content = get_post_field( 'post_content', $reply_id );
      
      		return apply_filters( 'bbp_get_reply_content', $content, $reply_id );
      	}
      
      /**
       * Output the excerpt of the reply
       *
       * @since bbPress (r2751)
       *
       * @param int $reply_id Optional. Reply id
       * @param int $length Optional. Length of the excerpt. Defaults to 100 letters
       * @uses bbp_get_reply_excerpt() To get the reply excerpt
      

Hook: add_filter: bbp_get_reply_content instances (9)

  • add_filter( 'bbp_get_reply_content', 'capital_P_dangit'         )
    $tag: bbp_get_reply_content
    $function_to_add: capital_P_dangit
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 323
      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   );
      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_reply_content', 'wptexturize',        3    )
    $tag: bbp_get_reply_content
    $function_to_add: wptexturize
    $priority: 3
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 324
      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   );
      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_reply_content', 'convert_chars',      5    )
    $tag: bbp_get_reply_content
    $function_to_add: convert_chars
    $priority: 5
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 325
      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   );
      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_reply_content', 'make_clickable',     9    )
    $tag: bbp_get_reply_content
    $function_to_add: make_clickable
    $priority: 9
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 326
      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   );
      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_reply_content', 'force_balance_tags', 25   )
    $tag: bbp_get_reply_content
    $function_to_add: force_balance_tags
    $priority: 25
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 327
      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   );
      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_reply_content', 'convert_smilies',    20   )
    $tag: bbp_get_reply_content
    $function_to_add: convert_smilies
    $priority: 20
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 328
      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   );
      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   );
      
  • add_filter( 'bbp_get_reply_content', 'wpautop',            30   )
    $tag: bbp_get_reply_content
    $function_to_add: wpautop
    $priority: 30
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 329
      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   );
      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   );
      
  • add_filter( 'bbp_get_reply_content', 'bbp_reply_content_append_revisions',  1, 2 )
    $tag: bbp_get_reply_content
    $function_to_add: bbp_reply_content_append_revisions
    $priority: 1
    $accepted_args: 2

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 341
      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( '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( 'bbp_get_reply_content', 'wp_kses_data' )
    $tag: bbp_get_reply_content
    $function_to_add: wp_kses_data
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 434
      	 * Run the updater late on 'bbp_admin_init' to ensure that all alterations
      	 * 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.
       *
      

Comments are closed.