messages_screen_compose

  • do_action( 'messages_screen_compose' )

    Source Reference:

    • Component: BuddyPress:: bp-messages
      File: /bp-messages/bp-messages-screens.php :: Trac Source Line: 82
      					bp_core_add_message( __( 'Message sent successfully!', 'buddypress' ) );
      					bp_core_redirect( $bp->loggedin_user->domain . $bp->messages->slug . '/view/' . $thread_id . '/' );
      				} else {
      					bp_core_add_message( __( 'There was an error sending that message, please try again', 'buddypress' ), 'error' );
      				}
      			}
      		}
      	}
      
      	do_action( 'messages_screen_compose' );
      
      	bp_core_load_template( apply_filters( 'messages_template_compose', 'members/single/home' ) );
      }
      
      function messages_screen_notices() {
      	global $notice_id;
      
      	if ( !is_super_admin() )
      		return false;
      

Hook: add_action: messages_screen_compose instances (1)

  • add_action( 'messages_screen_compose', 'bp_core_clear_cache' )
    $function_to_add: bp_core_clear_cache
    $priority: 0
    $accepted_args: 0

    Source Reference:

Comments are closed.