Hooks are added too late to act on `wp_login`
-
On
dashly.php:24
:add_action( 'init', array( 'DashlyBase', 'init' ) );
which in turn runs
wp-content/plugins/dashly/includes/class-dashlybase.php:41
DashlyBase::add_hooks()
your
wp_login
action gets added:add_action( 'wp_login', array( 'DashlyHooks', 'user_login' ) );
Unfortunately,
init
runs after WordPress’sdetermine_current_user
which is where many plugins runwp_set_current_user()
and the correspondingdo_action( 'wp_login' ... )
To remedy this, just change
dashly.php:24
to:DashlyBase::init();
- The topic ‘Hooks are added too late to act on `wp_login`’ is closed to new replies.