Skip to content

Instantly share code, notes, and snippets.

View thomasbrunier's full-sized avatar

Thomas Brunier thomasbrunier

View GitHub Profile
<?php
add_filter( 'option_active_plugins', __NAMESPACE__ . '\disable_acf_on_frontend' );
/**
* Disable ACF Pro on website frontend.
*
* Provides a performance boost if ACF frontend functions aren't being used.
*
* @since 1.0.0
* @link https://www.billerickson.net/code/disable-acf-frontend/
<?php
/**
* Template Name: Testimonials - Native Functions
*/
add_action( 'genesis_entry_content', 'prefix_output_testimonials' );
/**
* Output ACF testimonials.
*
* @link https://acfextras.com/simple-testimonials-repeater-field/
@thomasbrunier
thomasbrunier / wp-mailhog.php
Created January 28, 2019 09:22 — forked from bishless/wp-mailhog.php
Configure WordPress on Valet to use MailHog
<?php
/**
* @link
* @since 1.0.0
* @package TODO
*
* @wordpress-plugin
* Plugin Name: Use MailHog
* Description: Configure WordPress on Valet to use MailHog
* Version: 1.0.0