bbp_get_form_reply_content

  • apply_filters( 'bbp_get_form_reply_content', esc_textarea( $reply_content ) )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-template.php :: Trac Source Line: 1885
      		// Get edit data
      		elseif ( !empty( $post->post_content ) && bbp_is_reply_edit() )
      			$reply_content = $post->post_content;
      
      		// No data
      		else
      			$reply_content = '';
      
      		return apply_filters( 'bbp_get_form_reply_content', esc_textarea( $reply_content ) );
      	}
      
      /**
       * Output checked value of reply log edit field
       *
       * @since bbPress {unknown}
       *
       * @uses bbp_get_form_reply_log_edit() To get the reply log edit value
       */
      function bbp_form_reply_log_edit() {
      

Hook: add_filter: bbp_get_form_reply_content instances (1)

  • add_filter( 'bbp_get_form_reply_content', array( $this, 'strip_mentions_on_edit' ) )
    $tag: bbp_get_form_reply_content
    $function_to_add: array( $this
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-extend-buddypress.php :: Trac Source Line: 185
      			add_filter( 'bbp_new_reply_pre_content',  'bp_activity_at_name_filter' );
      
      			// Convert mentions into links on edit
      			add_filter( 'bbp_edit_topic_pre_content', 'bp_activity_at_name_filter' );
      			add_filter( 'bbp_edit_reply_pre_content', 'bp_activity_at_name_filter' );
      		}
      
      		// Revert links into text on edit
      		add_filter( 'bbp_get_form_topic_content', array( $this, 'strip_mentions_on_edit' ) );
      		add_filter( 'bbp_get_form_reply_content', array( $this, 'strip_mentions_on_edit' ) );
      	}
      
      	/**
      	 * Strip out BuddyPress activity at-name HTML on topic/reply edit
      	 *
      	 * Copied from bp_forums_strip_mentions_on_post_edit() in case forums
      	 * component is not active or is not loaded in yet.
      	 *
      	 * @since bbPress (r3475)
      	 *
      

Comments are closed.