Support » Plugin: WP SAML Auth » (Request) Let us customize the button text

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hey @swebervna,

    This should already be possible with the wp_saml_auth_login_strings filter:

    add_filter(
    	'wp_saml_auth_login_strings',
    	function ( $strings ) {
    		$strings['title'] = 'Sign in with Google:';
    		return $strings;
    	}
    );

    Hope this helps!

    Thread Starter swebervna

    (@swebervna)

    Daniel,

    Where do I insert this filter? I’m reading the readme.txt but it vaguely says “use this code snippet”, but I don’t know where and I’m assuming not in readme.txt cause it’s documentation, not function.

    Thank you 🙂

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Hey @swebervna,

    You’ll want to add the filter to a mu-plugin, or your theme’s functions.php file.

    Here’s a comprehensive overview to actions and filters, if it’s helpful: https://kinsta.com/blog/wordpress-hooks/

    Thread Starter swebervna

    (@swebervna)

    Ahhhh gotcha! I made myself a custom plugin to add all our hooks in such. Thank you so much sir 🙂

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘(Request) Let us customize the button text’ is closed to new replies.