login_init
The WordPress Core login init hook.
Description
Parameters (1)
- 0. $array (array) =>
array ( $this, 'check_use_math' )
- The array.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'login_init', $array );
- The following example is for adding a hook callback.
- // define the login_init callback
- function action_login_init( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'login_init', 'action_login_init', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'login_init', 'action_login_init', 10, 1 );
Defined (2)
The action is defined in the following location(s).
- /modules/protect.php
- add_action( 'login_init', array ( $this, 'check_use_math' ) );
- /modules/sso.php
- add_action( 'login_init', array( $this, 'login_init' ) );