<pre class="lang:php decode:true " title="Login Form">function ic_login() {

	if ( ! class_exists( 'GFLoginWidget' ) ) {
		return new WP_Error( 'missing_plugin', 'Missing required plugin: Gravity Forms' );
	}
	the_widget( GFLoginWidget::class, array(
		'active_view'         =&gt; 'logged-out',
		'title'               =&gt; 'Login',
		'tabindex'            =&gt; '1',
		'login_redirect_url'  =&gt; CC_ACCOUNT_URL,
		'logged_in_title'     =&gt; 'Welcome {user:display_name}',
		'logged_in_avatar'    =&gt; 0,
		'logged_in_message'   =&gt; '',
		'logout_redirect_url' =&gt; home_url('/'),
		'logged_in_links'     =&gt; array(),
		'logged_out_links'    =&gt; array(
			[ 'text' =&gt; 'Forgot Password?', 'url' =&gt; '{password_url}' ],
		),
	) );
}</pre>
&nbsp;