Product category – Shortcode for category image

/** * Shortcode: toon de thumbnail van de huidige WooCommerce productcategorie * * Gebruik: [category_thumbnail] */ function woocommerce_category_image_shortcode() { // Alleen uitvoeren op categorie-archieven if ( ! is_product_category() ) { return ”; // niets tonen buiten categoriepagina } global $wp_query;…Continue reading

Single product – SKU en Merkfoto

// Add merk logo to single product add_action(‘woocommerce_single_product_summary’, ‘toon_merk_logo_op_productpagina’, 5); function toon_merk_logo_op_productpagina() { global $product; $opening_tag = false; // Get SKU $product_number = $product->get_sku(); if ($product_number) { $opening_tag = true; // Let op: Alleen opening tag echo ‘ ‘; echo…Continue reading

Single product – Wasvoorschrift

function custom_woocommerce_attribute( $html, $attribute, $values ) { // Controleer of $attribute een object of string is if ( is_object( $attribute ) && method_exists( $attribute, ‘get_name’ ) ) { $attribute_name = strtolower( $attribute->get_name() ); } else { $attribute_name = strtolower( (string)…Continue reading

Export Form Fields to CSV

//****************************************************** // Place shortcode on a page to [form_fields_csv_download_link] // This snippet creates a short-code that you can add to a wordpress page or post // that will create a link to download a CSV file which contains a list…Continue reading

Add headers to API request adding user to Brevo email list

add_filter( ‘frm_api_request_args’, ‘my_custom_frm_api_request_header’, 10, 2 ); function my_custom_frm_api_request_header( $arg_array, $args ) { if ( $args[‘url’] == ‘https://api.brevo.com/v3/contacts/’ ) { // the full url where the request is being sent $arg_array[‘headers’][‘api-key’] = ‘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’; //Replace Your-API-Key-Here with your Brevo API key }…Continue reading