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
<?php | |
//Vanaf hier Kopiëren | |
/** | |
* Toont de tekst "Vanaf" wanneer er een verschil is tussen | |
* $product->min_variation_price EN $product->max_variation_price | |
* Geschikt voor WooCommerce versie 3, deze code kan je plakken in de functions.php van je thema | |
* Version: Woocommerce 3.0 | |
*/ |
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
add_filter( 'post_type_link', 'wphd_wc_link_permalink_external', 10, 2 ); | |
function wphd_wc_link_permalink_external( $url ) | |
{ | |
global $product; | |
if (!empty($product->product_url)){ | |
$url_external = $product->product_url; | |
return $url_external; |