e( 'Change Login Button' ); ?>

e( 'You can change the appearance of login button.' ); ?>

/**
 * e( 'You can customize Facebook login button like this' ); ?>

 * @param string  $markup
 * @param string  $link
 * @param string  $title
 * @param boolean $link
 * @param string  $service facebook, google, etc.
 */
function _my_login_link_facebook($markup, $link, $title, $is_register, $service){
	return '<a class="my_fb_link my_fb_link_{$service}" href="'.$link.'">'.$title.'</a>';
}
// Add filter.
add_filter('gianism_link_html', '_my_login_link_facebook', 10, 5);

e( 'Change Redirect' ); ?>

e( 'You can hook on redirect URL after user logged in.' ); ?>

/**
 * Customize redirect URL
 * @param string $url     if not specified, null will be passed.
 * @param string $service facebook, twitter, etc.
 * @param string $context login, connect, etc.
 * @return string URL string to redirect to. Null is no-redirect.
 */
function _my_redirect_to($url, $service, $context){
	//e( 'Now you can get redirect URL.' ); ?>

	//e( 'Not specified, $url is null.' ); ?>

	return home_url();
}
// Add filter.
add_filter('gianism_redirect_to', '_my_redirect_to', 10, 3);

e( 'Note: Redirect occurs on various situations. If you are not enough aware of WordPress URL process, some troubles might occurs.' ); ?>

e( 'Control login button display' ); ?>

e( 'By default, all login buttons of each services are displayed on both login screen and register screen. You can turn it off on admin screen. Besides it, you can controll it with filter hook.' ); ?>


e( 'Display login button as you like' ); ?>

e( 'You can display social login buttons anywhere.' ); ?>

e( 'Gianism displays social login button on login screen. But you may want to display in other situations.' ); ?>
e( 'For example, you have some SNS oriented site and want to hide WordPress\'s login screen and want your user to log in only through social login buttons.' ); ?>
e( 'In this case, you can display social login buttons wherever you like. The "if" statement is not necessary if you are brave.' ); ?>


e( 'Further more, you might think your user should be redirect to your single page. In this case, you can specify redirect URL.' ); ?>


e( 'First argument is starting tag(e.g. <div id="some-id">). Second argument is closing tag(e.g. </div>). And third argument is redirect URL where your user will be redirected after logging-in.' ); ?>

e( 'Data Source' ); ?>

_( 'For more detailed information, please visit our support site.' ), gianism_utm_link( 'https://gianism.info/', [ 'utm_medium' => 'customize', ] ) ); ?>