Skip to content

Instantly share code, notes, and snippets.

View ValentinGenev's full-sized avatar
🎱

Valentin Genev ValentinGenev

🎱
View GitHub Profile
@ValentinGenev
ValentinGenev / data.csv
Last active January 7, 2022 10:44
Sends emails with data from Google sheet
3
email1@test.com email1@test.com email3@test.com
Hello, guys! This is an automated email. Kind regards, Valio
@ValentinGenev
ValentinGenev / change-wc-product-block-markup.php
Last active October 4, 2019 13:39
Changes the output markup of the product blocks.
<?php
if (!function_exists('woo_custom_product_block_markup')) {
function woo_custom_product_block_markup($data) {
$product_markup = new DOMDocument();
$product_markup->loadHTML($data);
$product_anchor = $product_markup->getElementsByTagName('a');
$product_id = '';
foreach ($product_anchor as $anchor) {
if ($anchor !== '') {