wpmu_new_user
The WordPress Core wpmu new user hook.
Description
Parameters (1)
- 0. $newuser_notify_siteadmin (string) =>
'newuser_notify_siteadmin'
- The newuser notify siteadmin.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'wpmu_new_user', $newuser_notify_siteadmin );
- The following example is for adding a hook callback.
- // define the wpmu_new_user callback
- function action_wpmu_new_user( $newuser_notify_siteadmin ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'wpmu_new_user', 'action_wpmu_new_user', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'wpmu_new_user', 'action_wpmu_new_user', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /wp-includes/ms-default-filters.php
- add_action( 'wpmu_new_user', 'newuser_notify_siteadmin' );
- /wp-includes/ms-functions.php
- do_action( 'wpmu_new_user', $user_id );