Skip to content

Instantly share code, notes, and snippets.

@fumikito
Created October 19, 2020 10:38
Show Gist options
  • Save fumikito/6e4a6b9b245c5e0011d6ab333762f500 to your computer and use it in GitHub Desktop.
Save fumikito/6e4a6b9b245c5e0011d6ab333762f500 to your computer and use it in GitHub Desktop.
Change label for Gianism login button
<?php
/**
* Gianismのログインボタンのラベルを変更
*
* @param string $label
* @param bool $register
* @param string $context
* @return string
*/
add_filter( 'gianism_login_button_label', function( $label, $register, $context ) {
// LINEだったら、ラベルを変更
if ( 'LINEでログイン'=== $label ) {
$label = 'LINEで登録';
}
return $label;
}, 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment