Created
February 5, 2021 14:06
-
-
Save wpmu-authors/3ecdaf77b4a3ee888de7ca0f2109c655 to your computer and use it in GitHub Desktop.
remove-option.php
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( 'admin_init', 'my_detect_acf' ); | |
function my_detect_acf() { | |
if( !function_exists( 'the_field' )) { | |
delete_option( 'my-acf-notice-dismissed' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment