• Resolved draperd

    (@draperd)


    Hi —

    I’m using clean-login with Elementor. In particular, I put the shortcodes for login, registration and password resets on three different tabs of a tabbed widget.

    When show the page, it shows perfectly, but when I tried to use the forms (entering my login information), nothing happened. I debugged to find that this condition wasn’t working as expected:

    strpos($post->post_content, 'clean-login' ) !== false

    … namely, the shortcode had already been expanded before this condition was reached, so the text “clean-logic” was no longer there.

    I was able to work around this easily enough, by adding the after the shortcode in my page content:

    <span style='display:none;'>clean-login</span>

    But it seems to me that you need another way to determine whether there is a clean-login form on the page.

    (Separately: it sure would be nice if you had a shortcode that would combine the login/reset or login/reset/register into a single widget, since that is a common enough pattern.)

    thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author Alberto Hornero

    (@hornero)

    Hi, the problem is that if you use in different tabs is certainly the same page, but each shortcode needs to be located in a different page/post.

Viewing 1 replies (of 1 total)

The topic ‘shortcodeElementor: shortcode expanded before clean_login_load_before_headers()’ is closed to new replies.