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
// cleverreach api | |
$cleverreach = (object) [ | |
'api_url' => 'https://rest.cleverreach.com', | |
'client_id' => 'xxxxxxxxxx', | |
'client_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', | |
'list_id' => 1337, | |
'form_id' => 1337, | |
'access_token' => null, | |
'email' => '[email protected]', | |
'source' => 'tld.com', |
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 | |
/** | |
* Validate cart items and prevent adding incompatible product types. | |
* | |
* @param bool $passed | |
* @param int $product_id | |
* @param int $quantity | |
* @return bool | |
*/ |
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 | |
add_filter( 'gm_email_confirm_order_send_it', function( $boolean, $order ) { | |
if ( /*deine Anweisung */ ) { | |
$boolean = false; | |
} | |
return $boolean; |
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
var scripts = document.getElementsByTagName("script"); | |
for (var i=0;i<scripts.length;i++) { | |
if (scripts[i].src) console.log(i,scripts[i].src) | |
else if (scripts[i].dataset.rocketSrc) console.log(scripts[i].dataset.rocketSrc) | |
else console.log(i,scripts[i].innerHTML) | |
} |
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
$brand__colors: ( | |
primary: ( | |
"h": 100, | |
"l": 50%, | |
"s": 15%, | |
"a": 0.9 | |
), | |
secondary: ( | |
"h": 100, | |
"l": 50%, |
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 remove_woo_commerce_hooks() | |
{ | |
global $avada_woocommerce; | |
// remove cross sell section after item table in avada cart | |
// remove_action('woocommerce_cart_collaterals', array($avada_woocommerce, 'cart_collaterals'), 5); // coupon | |
remove_action('woocommerce_cart_collaterals', array($avada_woocommerce, 'cross_sell_display'), 5); | |
// add cross sell section after cart button |
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 | |
/* | |
* Display posts only from today and in the future: | |
* http://old.support.advancedcustomfields.com/discussion/6000/how-to-sort-posts-by-acf-date-and-display-only-future-posts | |
* by Pasnon | |
*/ | |
$date_args = array( | |
'post_type' => 'events', |
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
// Adds the Payment Request button (Apple Pay) on the checkout page then moves it to after the customer details. | |
// Replace `woocommerce_checkout_after_customer_details` with wherever you want to | |
add_filter( 'wc_stripe_show_payment_request_on_checkout', '__return_true' ); | |
remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 ); | |
remove_action( 'woocommerce_checkout_before_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 ); | |
add_action( 'woocommerce_checkout_after_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_html' ), 1 ); | |
add_action( 'woocommerce_checkout_after_customer_details', array( WC_Stripe_Payment_Request::instance(), 'display_payment_request_button_separator_html' ), 2 ); |
NewerOlder