Created
June 29, 2023 11:29
-
-
Save mio31337/1dcbfa6266cbddda456e0a0774f13e5d to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/** | |
* Removes admin notices for outdated template files | |
*/ | |
function remove_template_files_notice() { | |
remove_action( 'admin_notices', 'wc_template_file_check' ); | |
} | |
add_action( 'admin_init', 'remove_template_files_notice' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment