[Resolved] Change Up-sell products text (WooCommerce) by PHP Filter

Home Forums Support [Resolved] Change Up-sell products text (WooCommerce) by PHP Filter

Home Forums Support Change Up-sell products text (WooCommerce) by PHP Filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1578277
    David

    Hi GP Team!

    I’m looking to change the upsell text on WooCommerce. I’ve tried like four filters and nothing happens.

    Can you help me? I don’t understand what are happening.

    I submit you the URL. You will se the text “També us recomanem…”

    Thank you 🙂

    #1578445
    David
    Staff
    Customer Support

    Hi there,

    this PHP Snippet should work:

    add_filter( 'woocommerce_product_upsells_products_heading', 'db_change_upsell_title_text' );
      
    function db_change_upsell_title_text() {
       return 'Your upsell title text here...';
    }
    #1578478
    David

    It works perfectly 🙂 Thank you so much!

    #1578702
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.