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 | |
/** | |
* Plugin Name: Suppress Log Warnings | |
* Plugin URI: https://gist.github.com/christianwach/7d2bb481f9efe185f2b8 | |
* Description: Suppresses annoying warnings generated by various plugins. | |
* Version: 1.0 | |
* | |
* Put this plugin in /wp-content/mu-plugins/ | |
* | |
* @package CMW_Suppress_Log_Warnings |
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
/** | |
* Register hero block | |
*/ | |
add_action('acf/init', 'hero'); | |
function hero() { | |
// check function exists | |
if( function_exists('acf_register_block') ) { | |
// register a hero block |