Created
February 5, 2021 13:32
-
-
Save wpmu-authors/a0445d05835d7221d591141b5975d192 to your computer and use it in GitHub Desktop.
dependency.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
if( !function_exists( 'the_field' ) ) { | |
add_action( 'admin_notices', 'my_acf_notice' ); | |
} | |
function my_acf_notice() { | |
?> | |
<div class="update-nag notice"> | |
<p><?php _e( 'Please install Advanced Custom Fields, it is required for this plugin to work properly!', 'my_plugin_textdomain' ); ?></p> | |
</div> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment