-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Labels
enhancementNew feature or requestNew feature or request
Description
One feature we have requested pretty often is the ability to choose exactly when a snippet is evaluated. This could encompass both where (i.e., post type, page type, etc) and when (logged in, administrator, specific users, etc).
While this can be easily achieved by including conditional tags in Functions snippets, it seems that people would find an interface control helpful, and it would be especially useful for snippets that don't allow for PHP code (CSS/JS snippets).
Conditions should work with all four snippet types: Functions, Content, Styles, Scripts.
Relevant topics
- Originally raised here: Conditional Tags - WooCommerce #95
- https://wordpress.org/support/topic/javascript-only-on-one-page/
deckerweb, nowrds and Vossha
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request