bp_get_message_notice_text

  • apply_filters( 'bp_get_message_notice_text', $messages_template->thread->message )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 463
      		global $messages_template;
      		return apply_filters( 'bp_get_message_notice_subject', $messages_template->thread->subject );
      	}
      
      function bp_message_notice_text() {
      	echo bp_get_message_notice_text();
      }
      	function bp_get_message_notice_text() {
      		global $messages_template;
      		return apply_filters( 'bp_get_message_notice_text', $messages_template->thread->message );
      	}
      
      function bp_message_notice_delete_link() {
      	echo bp_get_message_notice_delete_link();
      }
      	function bp_get_message_notice_delete_link() {
      		global $messages_template, $bp;
      
      		return apply_filters( 'bp_get_message_notice_delete_link', wp_nonce_url( $bp->loggedin_user->domain . $bp->messages->slug . '/notices/delete/' . $messages_template->thread->id, 'messages_delete_thread' ) );
      	}
      

Hook: add_filter: bp_get_message_notice_text instances (7)

  • add_filter( 'bp_get_message_notice_text', 'wp_filter_kses', 1 )
    $tag: bp_get_message_notice_text
    $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: 7
      <?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_message_notice_text', 'wptexturize' )
    $tag: bp_get_message_notice_text
    $function_to_add: wptexturize
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 28
      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( 'messages_message_content_before_save', 'force_balance_tags' );
      add_filter( 'messages_message_subject_before_save', 'force_balance_tags' );
      add_filter( 'messages_notice_message_before_save', 'force_balance_tags' );
      add_filter( 'messages_notice_subject_before_save', 'force_balance_tags' );
      
      add_filter( 'bp_get_message_notice_subject', 'wptexturize' );
      add_filter( 'bp_get_message_notice_text', 'wptexturize' );
      add_filter( 'bp_get_message_thread_subject', 'wptexturize' );
      add_filter( 'bp_get_message_thread_excerpt', 'wptexturize' );
      add_filter( 'bp_get_the_thread_message_content', 'wptexturize' );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_notice_text', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_subject', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_smilies', 2 );
      add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 );
      
  • add_filter( 'bp_get_message_notice_text', 'convert_smilies', 2 )
    $tag: bp_get_message_notice_text
    $function_to_add: convert_smilies
    $priority: 2
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 34
      add_filter( 'messages_notice_subject_before_save', 'force_balance_tags' );
      
      add_filter( 'bp_get_message_notice_subject', 'wptexturize' );
      add_filter( 'bp_get_message_notice_text', 'wptexturize' );
      add_filter( 'bp_get_message_thread_subject', 'wptexturize' );
      add_filter( 'bp_get_message_thread_excerpt', 'wptexturize' );
      add_filter( 'bp_get_the_thread_message_content', 'wptexturize' );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_notice_text', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_subject', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_smilies', 2 );
      add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_chars' );
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
  • add_filter( 'bp_get_message_notice_text', 'convert_chars' )
    $tag: bp_get_message_notice_text
    $function_to_add: convert_chars
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 40
      add_filter( 'bp_get_the_thread_message_content', 'wptexturize' );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_notice_text', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_subject', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_smilies', 2 );
      add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_chars' );
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      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_text', 'make_clickable', 9 )
    $tag: bp_get_message_notice_text
    $function_to_add: make_clickable
    $priority: 9
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 45
      add_filter( 'bp_get_message_thread_excerpt', 'convert_smilies', 2 );
      add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_chars' );
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      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' );
      add_filter( 'bp_get_message_thread_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_thread_excerpt', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_message_notice_text', 'wpautop' )
    $tag: bp_get_message_notice_text
    $function_to_add: wpautop
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 49
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      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' );
      add_filter( 'bp_get_message_thread_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_thread_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_subject_value', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_content_value', 'stripslashes_deep' );
      add_filter( 'bp_get_the_thread_message_content', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_message_notice_text', 'stripslashes_deep' )
    $tag: bp_get_message_notice_text
    $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: 53
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      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' );
      add_filter( 'bp_get_message_thread_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_thread_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_subject_value', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_content_value', 'stripslashes_deep' );
      add_filter( 'bp_get_the_thread_message_content', 'stripslashes_deep' );
      
      add_filter( 'bp_get_the_thread_message_content', 'stripslashes_deep' );
      add_filter( 'bp_get_the_thread_subject', 'stripslashes_deep' );
      
      ?>

Comments are closed.