Action
wp_session_cleanup
Fires at the end of the scheduled session garbage collection.
Runs from wp_session_cleanup after expired session rows have been deleted from the options table. The cleanup is triggered by the twice-daily wp_session_garbage_collection event. It takes no arguments.
Example#
function my_after_session_cleanup() {
delete_transient( 'my_session_stats' );
}
add_action( 'wp_session_cleanup', 'my_after_session_cleanup' );
Source#
Fired from:
includes/libraries/wp-session.php(line 142), inwp_session_cleanup()
See also#
Was this page helpful?
