Skip to content

Instantly share code, notes, and snippets.

@kcristiano
kcristiano / suppress-log-warnings.php
Last active May 5, 2024 14:58 — forked from christianwach/suppress-log-warnings.php
A WordPress plugin that suppresses warnings created by various plugins and themes in WordPress.
<?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
@kcristiano
kcristiano / functions.php
Created August 24, 2019 18:15 — forked from tessak22/functions.php
Hero Gutenberg Block using Advanced Custom Fields 5.8 Pro
/**
* Register hero block
*/
add_action('acf/init', 'hero');
function hero() {
// check function exists
if( function_exists('acf_register_block') ) {
// register a hero block