Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Filter directory path for template files in Order Bump
*/
function my_wcob_template_dir( $dir ) {
return '/www/kinsta/public/plugins/wp-content/themes/my-child-theme/wcob-templates/'; // Update this path as required
}
add_filter( 'wcob_template_dir', 'my_wcob_template_dir' );
.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 '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;
}