This file contains hidden or 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
//https://silvawebdesigns.com/woocommerce-product-reviews/ | |
add_shortcode( 'product_reviews', 'silva_product_reviews_shortcode' ); | |
function silva_product_reviews_shortcode( $atts ) { | |
if ( empty( $atts ) ) return ''; | |
if ( ! isset( $atts['id'] ) ) return ''; | |
This file contains hidden or 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
//https://www.tychesoftwares.com/how-to-add-plus-and-minus-buttons-to-the-quantity-input-on-the-product-page-in-woocommerce/ | |
add_action( 'woocommerce_after_add_to_cart_quantity', 'ts_quantity_plus_sign' ); | |
function ts_quantity_plus_sign() { | |
echo '<button type="button" class="plus" >+</button>'; | |
} | |
add_action( 'woocommerce_before_add_to_cart_quantity', 'ts_quantity_minus_sign' ); | |
function ts_quantity_minus_sign() { |
This file contains hidden or 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 | |
function is_wplogin(){ | |
$ABSPATH_MY = str_replace(array('\\','/'), DIRECTORY_SEPARATOR, ABSPATH); | |
return ((in_array($ABSPATH_MY.'wp-login.php', get_included_files()) || in_array($ABSPATH_MY.'wp-register.php', get_included_files()) ) || (isset($_GLOBALS['pagenow']) && $GLOBALS['pagenow'] === 'wp-login.php') || $_SERVER['PHP_SELF']== '/wp-login.php'); | |
} | |
add_action( 'wp_head', 'user_registration_login_init', 10, 1 ); |
This file contains hidden or 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
if(jQuery('select.hidden-select').length){ | |
initCustomSelect(); | |
} | |
function initCustomSelect(){ | |
// Iterate over each select element | |
jQuery('select.hidden-select').each(function () { | |
// Cache the number of options |
This file contains hidden or 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 | |
function var_dump2($data){ | |
print("<pre>".print_r($data,true)."</pre>"); | |
} | |
?> |
This file contains hidden or 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 | |
/** | |
* my_terms_clauses | |
* | |
* filter the terms clauses | |
* | |
* @param $clauses array | |
* @param $taxonomy string | |
* @param $args array |
This file contains hidden or 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
elementorProFrontend.modules.popup.showPopup( { id: 123 } ); |
This file contains hidden or 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( ".add_to_cart_button" ).each(function(){ | |
var product_id = jQuery(this).attr('data-product_id'); | |
var el = jQuery(this); | |
el.click(function(e) { | |
e.preventDefault(); | |
var data = { | |
action: 'woocommerce_ajax_add_to_cart', |
This file contains hidden or 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
.custom-ul-li .elementor-text-editor > ul,.custom-ul-li .elementor-text-editor > ol{ | |
margin: 0; | |
padding: 0 0 0 20px; | |
} | |
.custom-ul-li ::marker{ | |
color:#CF5757; | |
font-weight: bold; | |
font-style: italic; | |
} |
This file contains hidden or 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
.elementor-text-editor{ | |
p:first-child { | |
margin-top: 0; | |
} | |
p:last-child { | |
margin-bottom: 0; | |
} | |
} |