jetpack_unlinked_user
Fires after the current user has been unlinked from WordPress.com.
Description
Parameters (1)
- 0. $user_id (int)
- The current user's ID.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'jetpack_unlinked_user', $user_id );
- The following example is for adding a hook callback.
- // define the jetpack_unlinked_user callback
- function action_jetpack_unlinked_user( $user_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'jetpack_unlinked_user', 'action_jetpack_unlinked_user', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'jetpack_unlinked_user', 'action_jetpack_unlinked_user', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /class.jetpack.php
- do_action( 'jetpack_unlinked_user', $user_id );
- /modules/sso.php
- add_action( 'jetpack_unlinked_user', array( $this, 'delete_connection_for_user') );