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
/* | |
* Add Revision support to WooCommerce Products | |
* | |
*/ | |
add_filter( 'woocommerce_register_post_type_product', 'cinch_add_revision_support' ); | |
function cinch_add_revision_support( $supports ) { | |
$supports['supports'][] = 'revisions'; |
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
// Output on Single Post | |
<meta name="description" content="Most of us who are close to the WordPress world know that Gutenberg is coming. And probably soon. We’ve been using it here on Cinch and elsewhere in order to…" /> | |
<meta property="og:image" content="https://cinchws.local/wp-content/uploads/2018/09/marco-djallo-127113-unsplash.jpg" /> | |
<meta property="og:image:width" content="1300" /> | |
<meta property="og:image:height" content="450" /> | |
<meta property="og:locale" content="en_US" /> | |
<meta property="og:type" content="article" /> | |
<meta property="og:title" content="This is the test meta title yes! | Cinch Web Services" /> | |
<meta property="og:description" content="Most of us who are close to the WordPress world know that Gutenberg is coming. And probably soon. We’ve been using it here on Cinch and elsewhere in order to get a better understanding of how it works…" /> | |
<meta property="og:url" content="https://cinchws.local/keeping-up-with-gutenberg/" /> |
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 $efeed = new WP_Query( array( | |
'post_type' => 'tribe_events', | |
'showposts' => 2, | |
'eventDisplay' => 'upcoming', | |
'start_date' => $current_date, | |
'end_date' => $current_date, | |
'orderby' => 'start_date', | |
'order' => 'ASC', | |
'tax_query' => array( | |
array( |
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
.flood .service:nth-of-type(1) { | |
#redSwatch { | |
@include animation-name(red-swatch-go); | |
@extend .animation-settings; | |
@include transform-origin(32%, 78%); | |
} | |
&:hover #redSwatch { | |
@include animation-name(red-swatch-off); |
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 $efeed = new WP_Query( array( | |
'post_type' => 'tribe_events', | |
'showposts' => 2, | |
'eventDisplay' => 'upcoming', | |
'start_date' => $current_date, | |
'end_date' => $current_date, | |
'orderby' => 'start_date', | |
'order' => 'ASC', | |
'tax_query' => array( | |
array( |
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
add_filter('woocommerce_email_header', 'spigot_reply_to_mail_filter', 11, 3); | |
function spigot_reply_to_mail_filter($headers = '', $ordertype = 'new_order', $order = '') { | |
if(!is_object($order) || empty($order) || $ordertype !== 'new_order') { return $headers; } | |
$name = $order->get_billing_first_name().' '.$order->get_billing_last_name(); | |
$email = $order->get_billing_email(); |
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: WooCommerce Enable Reviews - Bulk Edit | |
* Description: Allow enable reviews by bulk edit into WooCommerce | |
* Version: 1.0.0 | |
* Author: Mário Valney | |
* Author URI: http://mariovalney.com | |
* Text Domain: woo-enable-reviews-bulk-edit | |
* |
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
<svg class="icon icon--twitter"><use xlink:href="#icon--twitter"></use></svg> |
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
$(".element").hover(function(){ | |
// Get the current title | |
var title = $(this).attr("title"); | |
// Store it in a temporary attribute | |
$(this).attr("tmp_title", title); | |
// Set the title to nothing so we don't see the tooltips | |
$(this).attr("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
/* | |
* Hide zero value on any zero cost shipping methods | |
* | |
*/ | |
add_filter( 'woocommerce_cart_shipping_method_full_label', function( $label, $method ) { | |
if ( $method->cost <= 0 ) { | |
$label = $method->get_label(); |