Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Van Patten chrisvanpatten

View GitHub Profile
View functions.php
<?php
/**
* Product quantity inputs
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@chrisvanpatten
chrisvanpatten / title-tag.php
Created Apr 1, 2012 — forked from nacin/title-tag.php
Replacement for wp_title()?
View title-tag.php
<?php
// In a theme:
add_action( 'after_setup_theme', function() {
add_theme_support( 'title-tag', array( 'option' => true ) );
} );
// In core:
add_action( 'wp_head', '_wp_render_title_tag' );
function _wp_render_title_tag() {
You can’t perform that action at this time.