Skip to content

Instantly share code, notes, and snippets.

@mgratch
mgratch / functions.php
Last active December 18, 2015 17:50 — forked from dancameron/functions.php
Sprout Invoices Plugin/Theme Compatibility Example
<?php
/**
* Remove wp_footer hooks from an incompatible plugins and/or themes test test
*/
function remove_wp_footer_actions() {
if ( is_single() && ( SI_Invoice::is_invoice_query() || SI_Estimate::is_estimate_query() ) ) {
// plugins usually hook on the default priority, also
// core doesn't add anything on priority 10 so
// we can assume all hooks are from plugins and themes.
<?php
/*
Term Archive Pages:
- http://example.com/recipes/dinner/
- http://example.com/recipes/breakfast,brunch/
Single Recipe Pages:
- http://example.com/recipes/dinner/soup-title/