Created
March 25, 2015 04:58
-
-
Save daronspence/49c2d82a3aa79f9c799d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_head', function(){ | |
global $posts; | |
foreach ( $posts as $post ){ | |
if ( strpos($post->post_content,'[acfe_form') !== false ){ | |
echo 'Contains the shortcode<br>'; // now do acf_form_head() | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment