• Resolved Imagedumanwas

    (@dumanwas)


    Hi guys,
    there are some codes that shouldn’t work on Admin or User login. Could you add that option: Run except for User Login?

    Greetings

Viewing 1 replies (of 1 total)
  • Plugin Author ImageShea Bunge

    (@bungeshea)

    It would be possible to add, but I’m not sure whether it’s worth adding an additional scope for a few niche uses.

    Instead, I’d recommend setting the snippet to ‘Only run on site front-end’ (the login page is considered part of the site front-end), and adding this line to the top of the snippet before the other code:

    if ( 'wp-login.php' === $GLOBALS['pagenow'] ) return;

    This will prevent the snippet from running on the login page.

Viewing 1 replies (of 1 total)

The topic ‘Run Snippets Option Suggestion’ is closed to new replies.