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
// Adds "All Settings" link in the Settings Tab for Admins | |
function all_settings_link() { | |
add_options_page(__('All Settings'), __('All Settings'), 'administrator', 'options.php'); | |
} | |
add_action('admin_menu', 'all_settings_link'); |
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
/** | |
* Only display minimum price for WooCommerce variable products | |
**/ | |
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2); | |
function custom_variation_price( $price, $product ) { | |
$price = ''; | |
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
/** | |
* Only display maximum price for WooCommerce variable products | |
**/ | |
add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2); | |
function custom_variation_price( $price, $product ) { | |
$price = ''; | |
$price .= woocommerce_price($product->max_variation_price); |
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 | |
// File Security Check | |
if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) { | |
die ( 'You do not have sufficient permissions to access this page!' ); | |
} | |
?> | |
<?php | |
/*-----------------------------------------------------------------------------------*/ | |
/* Start WooThemes Functions - Please refrain from editing this section */ |
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
// Moves Main Navigation to the top of the header | |
add_action( 'wp', 'tweak_nav_layout' ); | |
function tweak_nav_layout() { | |
remove_action( 'woo_header_after','woo_nav', 10 ); | |
add_action( 'woo_header_before','woo_nav', 10 ); | |
} |
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
/* | |
* jQuery v1.9.1 included. Go allllll the way down | |
*/ | |
$(document).ready(function() { | |
// Removes first 3 chars from Topics list - By Jeff Pearce | |
function setCharAt(str,index,chr) { | |
if(index > str.length-1) return str; | |
return str.substr(0,index) + chr + str.substr(index+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 | |
/* Add CSS */ | |
add_action( 'wp_enqueue_scripts', 'pys_css', 40 ); | |
function pys_css() { | |
wp_register_style( 'pys-style', plugins_url('pys-style.css', __FILE__) ); | |
wp_enqueue_style( 'pys-style' ); | |
} |
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
function wc_order_status_styling() { | |
echo '<style> | |
.widefat .column-order_status mark.on-hold:after, .widefat .column-order_status mark.completed:after, .widefat .column-order_status mark.cancelled:after, .widefat .column-order_status mark.processing:after { | |
font-size: 2em; | |
} | |
/* Processing Ellipsis */ | |
.widefat .column-order_status mark.processing:after { | |
color: #2529d7; | |
} | |
/* On-Hold Dash */ |
OlderNewer