<?php if ( is_user_logged_in() ) {
$my_account_url = get_site_url() . '/my-account';
echo "<script>window.location.replace ('$my_account_url')</script>";?>
<?php } else { ?>
const banner = document.querySelector('.l-image');
const bannerHeight = banner.offsetHeight;
const parent = document.querySelector('.form-container');
if (banner) {
parent.style.height = `calc(300vh - ${bannerHeight}px`
}
Но это не принесло результата