Skip to content

Instantly share code, notes, and snippets.

.pewc-has-hex .pewc-radio-images-wrapper img {
visibility: hidden;
height: 0;
display: none;
}
.pewc-hex {
height: 30px;
width: 30px;
}
.cropper-view-box {
border-radius: 50%;
}
.cropper-face {
background-color:inherit !important;
}
<?php
function test_page_count_method( $method ) {
// return 'imagick'; // Use this if you have the Imagick PHP extension installed
return 'preg_match_all';
}
add_filter( 'wcpauau_page_count_method', 'test_page_count_method' );
<?php
add_action( 'wp_footer', function() {
?>
<style>
.pewc-has-extra-fields .pewc-item-products-radio-list[data-product-quantity-select="1"] .pewc-radio-wrapper .pewc-radio-list-label-wrapper {
display: none !important;
}
.pewc-has-extra-fields .pewc-item-products-radio-list[data-product-quantity-select="1"] .pewc-child-quantity-field-select {
width: 50px !important;
margin-left: auto;
<?php
add_filter( 'wcmo_disable_product_data_tab', '__return_true' );
form.cart.variations_form .woocommerce-variation-add-to-cart {
display: block !important;
}
ul.wcdpp-deposit-options-wrapper {
list-style: none !important;
margin-left: 0 !important;
margin-bottom: 2em;
padding-left: 0;
}
ul.wcdpp-deposit-options-wrapper h3 {
<?php
/**
* Hide products from specific category on shop page
* Update line 13 with category slugs to hide
*/
function pr_product_query_tax_query( $tax_query, $query ) {
if( ! is_shop() ) return $tax_query;
$tax_query[] = array(
<?php
/**
* Hide product category from main query
* Update line 17 with the slug of the category to be hidden
*/
function pr_product_query( $q ) {
if ( ! $q->is_main_query() ) return;
if ( ! $q->is_post_type_archive() ) return;
.ptuwc_table_container table thead tr th, .ptuwc_table_container table tbody tr td {
padding-top: 16px;
padding-bottom: 16px;
}
<?php
/**
* Filter product if user not logged in
*/
function pr_demo_is_purchasable( $purchasable, $product ) {
if( !is_user_logged_in() ) {
return false;
}
return $purchasable;
}