okay, i bypassed PHP and used the jQuery Skript only:
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('.simplemodal-login').trigger('click.simplemodal-login')
});
</script>
but that didn’t work either.
I replaced the $ with jQuery. i tried “bind” as a replacement for trigger. No errors, no success.
i tried a different approach with JS:
<script>
windows.location.href 'wp-login.php'
</script>
That works partially. it opens wp-login.php instantly, but without simplemodal login because i can’t use ‘class=”simplemodal-login”‘ with the windows location.href syntax.
How do i call SimpleModal Login direct ?
Found that question many times on the net, but no answers.