• Hello together,

    Sorry – but I have a general question – but I will show an example:
    Plugin WooCommerce Germanized is showing the value “get_product_units_html()” in file units.php.
    I don’t want to see this value in the article overview – that is why I want to hide the value.
    Now I saw that it is possible to add hooks – but I don’t know who to.
    May someone pls give an example?
    The units.php has the following content:

    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    
    global $product;
    ?>
    
    <?php if ( wc_gzd_get_gzd_product( $product )->has_product_units() ) : ?>
    	<!-- <span class="wc-gzd-additional-info product-units-wrapper product-units">
    	<?php /** echo wc_gzd_get_gzd_product( $product )->get_product_units_html(); **/ ?>
    	</span> --!>
    <?php endif; ?>

    What kind of function must I add to functions.php to hide the value – all the time?

    And maybe the next question: what kind of function must I add to show a further value from database?

    Thank you so much and sorry if I did something wrong – first post ??

    Best regards
    David

  • The topic ‘[WooCommerce Germanized] don’t show special value’ is closed to new replies.