xprofile_screen_display_profile

Fires right before the loading of the XProfile screen template file.

Description

do_action( 'xprofile_screen_display_profile', (string) $new ); 

Parameters (1)

0. $new (string)
$_GET parameter holding the new parameter.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'xprofile_screen_display_profile', $new ); 
The following example is for adding a hook callback.
  1. // define the xprofile_screen_display_profile callback 
  2. function action_xprofile_screen_display_profile( $new ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'xprofile_screen_display_profile', 'action_xprofile_screen_display_profile', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'xprofile_screen_display_profile', 'action_xprofile_screen_display_profile', 10, 1 ); 

Defined (1)

The action is defined in the following location(s).

/bp-xprofile/bp-xprofile-screens.php  
  1. do_action( 'xprofile_screen_display_profile', $new );