bp_get_messages_subject_value

  • apply_filters( 'bp_get_messages_subject_value', $subject )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 384
      function bp_messages_subject_value() {
      	echo bp_get_messages_subject_value();
      }
      	function bp_get_messages_subject_value() {
      		$subject = '';
      		if ( !empty( $_POST['subject'] ) )
      			$subject = $_POST['subject'];
      
      		return apply_filters( 'bp_get_messages_subject_value', $subject );
      	}
      
      function bp_messages_content_value() {
      	echo bp_get_messages_content_value();
      }
      	function bp_get_messages_content_value() {
      		$content = '';
      		if ( !empty( $_POST['content'] ) )
      			$content = $_POST['content'];
      

Hook: add_filter: bp_get_messages_subject_value instances (2)

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

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 10
      <?php
      // Exit if accessed directly
      if ( !defined( 'ABSPATH' ) ) exit;
      
      /* Apply WordPress defined filters */
      add_filter( 'bp_get_message_notice_subject', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_message_notice_text', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_message_thread_subject', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_message_thread_excerpt', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_messages_subject_value', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_messages_content_value', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_the_thread_message_content', 'wp_filter_kses', 1 );
      
      add_filter( 'messages_message_content_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_message_subject_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_notice_message_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_notice_subject_before_save', 'wp_filter_kses', 1 );
      
      add_filter( 'bp_get_the_thread_message_content', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_the_thread_subject', 'wp_filter_kses', 1 );
      
  • add_filter( 'bp_get_messages_subject_value', 'stripslashes_deep' )
    $tag: bp_get_messages_subject_value
    $function_to_add: stripslashes_deep
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 56
      add_filter( 'bp_get_the_thread_message_content', 'make_clickable', 9 );
      
      add_filter( 'bp_get_message_notice_text', 'wpautop' );
      add_filter( 'bp_get_the_thread_message_content', 'wpautop' );
      
      add_filter( 'bp_get_message_notice_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_notice_text', 'stripslashes_deep' );
      

Comments are closed.