Support » Plugin: Add Shortcodes Actions And Filters » my_login_redirect won't get_user_meta

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    This is because by default, the plugin won’t execute filters on the login page.

    Click the Settings (gear) icon at the top of the page when viewing your list of filters. That takes you to a page with the option:

    Allow Execution of Actions and Filters on Login/Logout pages
    WARNING: if your code has errors then it can cause you to be unable to login to your site to fix the code!

    If you should get locked out, read “Worst-case scenario” in the plugin FAQ: https://wordpress.org/plugins/add-actions-and-filters/faq/

    Thread Starter Anton_Th

    (@anton_th)

    Absolutely fantastic, thank you Michael! I remember now seeing that setting when I first installed the plugin.
    When I read your concerns (and they are indeed very very real!), the plugin could do with an option to use a file like ‘.loginlogoutscriptsenabled’ to be deleted by the user when he needs to disable the plugin. It might slow down a bit but the user can uncheck the option when everything works OK. Tampering with databases is also a risk, don’t you think? Thank you for the awesome plugin, it solves so many problems for making small php tweaks!

    Thread Starter Anton_Th

    (@anton_th)

    Works like a charm!

    Plugin Author Michael Simpson

    (@msimpson)

    That’s a good idea.

    Thread Starter Anton_Th

    (@anton_th)

    Thanks – if you like it, implement it! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘my_login_redirect won't get_user_meta’ is closed to new replies.