Usage
add_filter( 'auth_cookie_expiration', 'your_callback_function', 10, 3 );Filter Callback:
function your_callback_function( 2 * DAY_IN_SECONDS, $user_id, false ) {
// Your code here
return 2 * DAY_IN_SECONDS;
}Parameters
2 * DAY_IN_SECONDSParameter 1
$user_idParameter 2
falseParameter 3
🔄 Filter Hook
Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.
Triggered By
This hook is called by the following functions: