diff --git a/sso-wordpress-plugin/sso-wordpress-plugin.php b/sso-wordpress-plugin/sso-wordpress-plugin.php index 356d584..67cb78f 100644 --- a/sso-wordpress-plugin/sso-wordpress-plugin.php +++ b/sso-wordpress-plugin/sso-wordpress-plugin.php @@ -248,6 +248,18 @@ function sso_add_cta_banner() { add_action( 'loop_start', 'sso_add_cta_banner' ); +/** + * Filters the document title to display a custom title. + * + * @param string $title The original title. + * @return string The modified title. + */ +function sso_custom_document_title( $title ) { + return 'PHP SSO Login Demo'; +} +add_filter( 'pre_get_document_title', 'sso_custom_document_title', 9999 ); + + /** * Adds the JavaScript for the SSO popup to the footer. */