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 | |
/** | |
* Product quantity inputs | |
* | |
* @author WooThemes | |
* @package WooCommerce/Templates | |
* @version 2.1.0 | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
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 | |
/** | |
* vpm_comments_template | |
* | |
* Load our own template file for WooCommerce reviews | |
*/ | |
function vpm_comments_template( $template ) { | |
global $woocommerce; | |
$comments_template_path = get_stylesheet_directory() . '/woocommerce/single-product-reviews.php'; |
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
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
#titlebar { | |
min-height: 36px !important; | |
} | |
#nav-bar-customization-target { | |
padding: 2px 4px; | |
} |
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 | |
/** | |
* Per-page areas | |
*/ | |
$pages_args = array( | |
'post_type' => 'page', | |
'posts_per_page' => -1, | |
); |
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 | |
if ( $cfs->get('cross_sells') ) { | |
// Use the per-page options, if set | |
$cross_sells = $cfs->get( 'cross_sells' ); | |
$cs_header = $cfs->get( 'cross_sell_header_text' ); | |
} else { | |
// Use the global setting | |
$cross_sells = $cfs->get( 'cross_sells', rach5_options() ); | |
$cs_header = $cfs->get( 'cross_sell_header_text', rach5_options() ); |
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 | |
/** | |
* get_mailchimp_dc | |
* | |
* @return string | |
*/ | |
function get_mailchimp_dc( $api_key ) { | |
$dc = 'us1'; | |
$dc = explode('-', $api_key, 2 ); |
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 | |
/** | |
* vpm_remove_meta_box | |
*/ | |
function vpm_remove_meta_box() { | |
remove_meta_box( 'postcustom', 'post', 'normal' ); | |
} | |
add_action( 'add_meta_boxes', 'vpm_remove_meta_box' ); |
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
#!/usr/bin/env bash | |
# Create a vpmframe-wp project | |
mkdir $1 | |
cd $1 | |
git init | |
touch vpmframe-wp |
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
group: | |
title: Footer Text | |
field: | |
type: text | |
label: Product Type | |
name: product_type | |
options: | |
formatting: Default | |
required: false | |
notes: This can be any string. |
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 | |
/** | |
* Filter the WP SEO options so we can suppress nags and notices | |
* | |
* @param $options array The array of options | |
* @return array The modified array of options | |
*/ | |
function filter_yst_wpseo_options( $options ) { | |
// Suppress the About page |
OlderNewer