bp_get_messages_content_value

  • apply_filters( 'bp_get_messages_content_value', $content )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 395
      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'];
      
      		return apply_filters( 'bp_get_messages_content_value', $content );
      	}
      
      function bp_messages_options() {
      	global $bp;
      ?>
      	<?php _e( 'Select:', 'buddypress' ) ?>
      	<select name="message-type-select" id="message-type-select">
      		<option value=""></option>
      		<option value="read"><?php _e('Read', 'buddypress') ?></option>
      		<option value="unread"><?php _e('Unread', 'buddypress') ?></option>
      

Hook: add_filter: bp_get_messages_content_value instances (2)

  • add_filter( 'bp_get_messages_content_value', 'wp_filter_kses', 1 )
    $tag: bp_get_messages_content_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: 11
      // 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_content_value', 'stripslashes_deep' )
    $tag: bp_get_messages_content_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: 57
      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.