Shema Org: заметки

Тэги:

Комментарии (3)

test1

тестово б м

test1

function remove_schema_woocommerce_product( $types ) {
if ( ( $index = array_search( 'product', $types ) ) !== false ) {
unset( $types[ $index ] );
}
return $types;
}
add_filter( 'woocommerce_structured_data_type_for_page', 'remove_schema_woocommerce_product' );

test1

woo checkout button metrica


function so37729878_update_order_button_id( $button_html ) {
$button_html = str_replace( 'id="place_order"', 'id="place_order" onclick="ga(\'send\', \'event\', \'podtv_zakaz\', \'click_podtv_zakaz\'); yaCounter46000878.reachGoal(\'podtv_zakaz_ym\'); return true;"', $button_html );
return $button_html;
}
add_filter( 'woocommerce_order_button_html', 'so37729878_update_order_button_id' );



Оставить комментарий

Success/Error Message Goes Here

TOP