bbp_get_form_topic_content

  • apply_filters( 'bbp_get_form_topic_content', esc_textarea( $topic_content ) )

    Source Reference:

    • Component: bbPress :: bbp-topic
      File: /bbp-includes/bbp-topic-template.php :: Trac Source Line: 3109
      		// Get edit data
      		elseif ( !empty( $post->post_title ) && bbp_is_topic_edit() )
      			$topic_content = $post->post_content;
      
      		// No data
      		else
      			$topic_content = '';
      
      		return apply_filters( 'bbp_get_form_topic_content', esc_textarea( $topic_content ) );
      	}
      
      /**
       * Output value of topic tags field
       *
       * @since bbPress (r2976)
       * @uses bbp_get_form_topic_tags() To get the value of topic tags field
       */
      function bbp_form_topic_tags() {
      	echo bbp_get_form_topic_tags();
      

Hook: add_filter: bbp_get_form_topic_content instances (1)

  • add_filter( 'bbp_get_form_topic_content', array( $this, 'strip_mentions_on_edit' ) )
    $tag: bbp_get_form_topic_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: 184
      			add_filter( 'bbp_new_topic_pre_content',  'bp_activity_at_name_filter' );
      			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.