WPCodeBox Documentation
< All Topics

Adding ACF Code Snippets to WordPress doesn't work

In case you want to add ACF Code Snippets to WordPress, and it doesn't work, you will need to wrap your code in:

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

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram