Use the code LIFETIME at checkout and get 20% off our limited-time lifetime plans. Offer available until September 21.
WPCodeBox Documentation
< All Topics
Print

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:

<?php
add_action('plugins_loaded', function() {
    // Your code here
});
Next Adding Oxygen Code Snippets to WordPress doesn't work