Skip to content

Instantly share code, notes, and snippets.

@techies23
Created August 28, 2018 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techies23/9046a82671b994c20237a177838b70a2 to your computer and use it in GitHub Desktop.
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.
//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