-
-
Save techies23/9046a82671b994c20237a177838b70a2 to your computer and use it in GitHub Desktop.
To change messages text which cannot be done via backend inactive logout settings page.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Paste this into functions.php file | |
//For changing message "You have been logged out because of inactivity. Please wait while we redirect you to a certain page..." | |
add_filter('ina__redirect_message', 'your_theme_function' ); | |
function your_theme_function($msg) { | |
$msg = "You have been logged out because of inactivity. Please wait while we redirect you to a certain page. Since, this is a custom message"; | |
return $msg; | |
} | |
//For changing message "You have been logged out because of inactivity." | |
add_filter('ina__logout_message', 'your_theme_function' ); | |
function your_theme_function($msg) { | |
$msg = "You have been logged out because of inactivity. Please wait while we redirect you to a certain page. Since, this is a custom message"; | |
return $msg; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment