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
/* | |
** Paste in functions.php | |
** Remove "Products" from Yoast SEO breadcrumbs in WooCommerce | |
*/ | |
add_filter( 'wpseo_breadcrumb_links', function( $links ) { | |
// Check if we're on a WooCommerce page | |
// Checks if key 'ptarchive' is set | |
// Checks if 'product' is the value of the key 'ptarchive', in position 1 in the links array | |
if ( is_woocommerce() && isset( $links[1]['ptarchive'] ) && 'product' === $links[1]['ptarchive'] ) { |
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
/* | |
** Vertical rhythm made with Gridlover | |
** https://www.gridlover.net/try | |
** | |
** CSS antialiasing cheatsheet from: | |
** https://devhints.io/css-antialias | |
*/ | |
* { | |
-webkit-font-smoothing: antialiased; |
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
{ | |
"errors": [ | |
{ | |
"debugMessage": "Argument 1 passed to WPGraphQL\\Data\\DataSource::resolve_post_object() must be of the type int, string given, called in /srv/www/xxx.nl/current/web/app/plugins/wp-graphql-yoast-seo/wp-graphql-yoast-seo.php on line 1071", | |
"message": "Internal server error", | |
"extensions": { | |
"category": "internal" | |
}, | |
"locations": [ | |
{ |
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
/** | |
* file: functions.php | |
* Update meta data when someone's looking at their order thank you page | |
*/ | |
function thank_you_page( $order_id ){ | |
$order = wc_get_order($order_id); | |
$order->update_meta_data('_user_has_loaded_thank_you_page', 'yes'); | |
$order->save(); | |
} | |
add_action( 'woocommerce_thankyou', __NAMESPACE__ . '\\thank_you_page', 10, 1); |
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
// Unwanted referrals to use in Google Analytics 4 (NL|BE) | |
rabobank\.nl|ing\.nl|abnamro\.nl|regiobank\.nl|snsbank\.nl|asnbank\.nl|triodos\.nl|vanlanschot\.nl|knab\.nl|bunq\.com|frieslandbank\.nl|snsreaal\.nl|secure-ing\.com|mollie\.nl|mollie\.com|paypal\.com|paypal\.nl|adyen\.com|multisafepay\.com|visa\.com|wlp-acs\.com|belfius\.be|payin3\.nl|icscards\.nl|arcot\.com|securesuite\.co\.uk|hsbc\.com\.hk|cm-cic\.com|pay\.nl|redsys\.es|tatrabank\.sk|ideal\.vanlanschot\.com|ideal\.ing\.nl|bankieren\.ideal\.ing\.nl|betalen\.rabobank\.nl|ideal\.asnbank\.nl|ideal\.snsbank\.nl|ideal\.triodos\.nl|securecode\.abnamro\.nl|pay\.multisafepay\.com|kbc\.be|diensten\.snsbank\.nl|ideal\.bunq\.com|diensten\.asnbank\.nl|secureyou3d\.ing\.be|ideal\.knab\.nl|diensten\.regiobank\.nl|homepay\.ing\.be | |
// Cleaner version. This blocks all top level and subdomains. Test on regex101.com | |
.*rabobank\.nl|.*ing\.nl|.*ing\.be|.*abnamro\.nl|.*regiobank\.nl|.*snsbank\.nl|.*asnbank\.nl|.*triodos\.nl|.*vanlanschot\.nl|.*knab\.nl|.*bunq\.com|.*frie |