Limited time sale! Use the code LIFETIME at checkout and get 20% off our limited-time lifetime plans.
WPCodeBox Documentation
< All Topics

Adding Oxygen Code Snippets to WordPress doesn't work

In case you want to add Oxygen Code Snippets to WordPress (for example registering custom Oxygen conditions), and it doesn't work, you will need to wrap your code in:

add_action('plugins_loaded', function() {
    // Your code here

You can also find examples of code that adds custom Oxygen conditions to WordPress in the Code Snippets Repository that is included with WPCodeBox.

Previous Adding ACF Code Snippets to WordPress doesn't work
Copyright © 2022 WPCodeBox SRL. All other trademarks are the property of their respective owners
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram