bbp_new_reply_pre_title

  • apply_filters( 'bbp_new_reply_pre_title', $reply_title )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 177
      		remove_filter( 'bbp_new_reply_pre_content', 'wp_filter_kses' );
      	}
      
      	/** Reply Title ***********************************************************/
      
      	if ( !empty( $_POST['bbp_reply_title'] ) )
      		$reply_title = esc_attr( strip_tags( $_POST['bbp_reply_title'] ) );
      
      	// Filter and sanitize
      	$reply_title = apply_filters( 'bbp_new_reply_pre_title', $reply_title );
      
      	// No reply title
      	if ( empty( $reply_title ) )
      		bbp_add_error( 'bbp_reply_title', __( '<strong>ERROR</strong>: Your reply needs a title.', 'bbpress' ) );
      
      	/** Reply Content *********************************************************/
      
      	if ( !empty( $_POST['bbp_reply_content'] ) )
      		$reply_content = $_POST['bbp_reply_content'];
      

Hook: add_filter: bbp_new_reply_pre_title instances (1)

  • add_filter( 'bbp_new_reply_pre_title',  'wp_filter_kses' )
    $tag: bbp_new_reply_pre_title
    $function_to_add: wp_filter_kses
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-core-hooks.php :: Trac Source Line: 285
      add_filter( 'request', 'bbp_request_feed_trap' );
      
      // Links
      add_filter( 'paginate_links',          'bbp_add_view_all' );
      add_filter( 'bbp_get_topic_permalink', 'bbp_add_view_all' );
      add_filter( 'bbp_get_reply_permalink', 'bbp_add_view_all' );
      add_filter( 'bbp_get_forum_permalink', 'bbp_add_view_all' );
      
      // wp_filter_kses on new/edit topic/reply title
      add_filter( 'bbp_new_reply_pre_title',  'wp_filter_kses' );
      add_filter( 'bbp_new_topic_pre_title',  'wp_filter_kses' );
      add_filter( 'bbp_edit_reply_pre_title', 'wp_filter_kses' );
      add_filter( 'bbp_edit_topic_pre_title', 'wp_filter_kses' );
      
      // balanceTags, wp_filter_kses and wp_rel_nofollow on new/edit topic/reply text
      add_filter( 'bbp_new_reply_pre_content',  'balanceTags'     );
      add_filter( 'bbp_new_reply_pre_content',  'wp_rel_nofollow' );
      add_filter( 'bbp_new_reply_pre_content',  'wp_filter_kses'  );
      add_filter( 'bbp_new_topic_pre_content',  'balanceTags'     );
      add_filter( 'bbp_new_topic_pre_content',  'wp_rel_nofollow' );
      

Comments are closed.