function girisyap() { if ( !is_user_logged_in( ) ) { return home_url( '/wp-login.php' ); } } add_action('wp_head', 'girisyap');