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 | |
/* | |
Plugin Name: Testimonials Custom Post Type | |
Plugin URI: http://wpbeaches.com/create-custom-post-types-in-genesis-child-theme-in-wordpress/ | |
Description: Testimonials Custom Post Types | |
Author: Neil Gowran | |
Version:1.0.0 | |
Author URI:http://wpbeaches.com | |
*/ |
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 // <~ don't add me in | |
add_filter( 'woocommerce_short_description', 'prefix_filter_woocommerce_short_description' ); | |
/** | |
* Limit WooCommerce Short Description Field | |
*/ | |
function prefix_filter_woocommerce_short_description( $post_post_excerpt ) { | |
// make filter magic happen here... | |
if(! is_product() ) { // add in conditionals | |
$text = $post_post_excerpt; |
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 | |
/** | |
* Plugin Name: Filter WooCommerce Orders by Payment Method | |
* Plugin URI: http://skyverge.com/ | |
* Description: Filters WooCommerce orders by the payment method used :) | |
* Author: SkyVerge | |
* Author URI: http://www.skyverge.com/ | |
* Version: 1.0.0 | |
* Text Domain: wc-filter-orders-by-payment | |
* |
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_filter( 'woocommerce_checkout_fields' , 'virtual_products_less_fields' ); | |
/** | |
* WooCommerce Remove Address Fields from checkout based on presence of virtual products in cart | |
* @link https://www.skyverge.com/blog/checking-woocommerce-cart-contains-product-category/ | |
* @link https://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/ | |
* @link https://businessbloomer.com/woocommerce-hide-checkout-billing-fields-if-virtual-product-cart/ | |
*/ | |
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 | |
/** | |
* Plugin Name: Runcloud BeaverCache Purge Helper | |
* Plugin URI: https://gist.github.com/neilgee/4a251b24f65a70849ab122afa6dfac0fp | |
* Description: Adding additional hooks to trigger RunCloud or lscache plugin purges | |
* Version: 0.1 | |
* Author: Paul Stoute, Jordan Trask, Jeff Cleverly, Neil Gowran | |
* Author URI: https://github.com/jordantrizz/cache-purge-helper | |
* Text Domain: runcloud-beaver-cache-purge-helper |
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 | |
// Taxonomy Loop | |
/** | |
* Get the Custom Taxonomy | |
* For a list of other parameters to pass in see link below | |
* @link https://developer.wordpress.org/reference/classes/wp_term_query/__construct/ | |
* For a list of get_term return values see link below | |
* @link https://codex.wordpress.org/Function_Reference/get_term |
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
/* 2-col WooCommerce Checkout - tested in BB Theme, Generate Press, TwentyTwelve, TwentyThirteen, TwentyFourteen TwentyFifteen, TwentySixteen, TwentySeventeen and TwentyNineteen */ | |
/* TwentyTwenty and TwentyTwentyOne already have this CSS or similar */ | |
@media(min-width:768px) { | |
.woocommerce .col2-set .col-1, | |
.woocommerce-page .col2-set .col-1 { | |
width: 90%; | |
} |
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(document).ready(function($) { | |
$('#nav-toggle').sidr({ | |
name: 'sidr-right', | |
side: 'right', | |
source: '#menu-short, .search-form, .site-title' | |
}); | |
}); |
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 //<~ don't add me in | |
add_shortcode( 'modal_post_loop', 'modal_post_loop' ); | |
/** | |
* Post Query Showing Loop Content in Modals | |
* @since 1.0.0 | |
*/ | |
function modal_post_loop() { | |
ob_start(); |
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 custom taxonomies | |
/* | |
Plugin Name: WP Beaches Taxonomies | |
Plugin URI: http://wpbeaches.com/ | |
Description: WP Beaches Custom Taxonomies | |
Author: Neil Gowran | |
Version: 1.1.0 | |
Author URI: http://wpbeaches.com | |
*/ |