Start a project

WooCommerce Print Products Filters

Here is a list of all Filters for our WooCommerce Print products plugin:

// Data Filters
apply_filters('woocommerce_print_products_title', $this->post->post_title);
apply_filters('woocommerce_print_products_short_description', do_shortcode($this->post->post_excerpt));
apply_filters('woocommerce_print_products_price', $price);
apply_filters('woocommerce_print_products_description', $this->post->post_content);
apply_filters('woocommerce_print_products_meta_keys', $temp);
apply_filters('woocommerce_print_products_product_html', $this->get_first_layout(), $this->data->ID);
// Custom HTML
apply_filters('woocommerce_print_products_before_product_info_html', '', $this->data->ID);
apply_filters('woocommerce_print_products_after_product_info_html', '', $this->data->ID);
// HTML Strings
apply_filters('woocommerce_print_products_product_description_html', ob_get_clean(), $this->data->ID);
apply_filters('woocommerce_print_products_product_attributes_html', ob_get_clean(), $this->data->ID);
apply_filters('woocommerce_print_products_product_attributes_html', ob_end_clean(), $this->data->ID);
apply_filters('woocommerce_print_products_product_reviews_html', ob_get_clean(), $this->data->ID);
apply_filters('woocommerce_print_products_product_upsells_html', ob_get_clean(), $this->data->ID);
apply_filters('woocommerce_print_products_product_gallery_images_html', ob_get_clean(), $this->data->ID);
apply_filters('woocommerce_print_products_product_variations_html', ob_get_clean(), $this->data->ID);

Questions & answers (6)

  1. Shahid IqbalMay 26, 2023

    woocommerce_print_products_meta_keys
    We bought Product pdf plugin for our website. I am searching example for the above meta key hook. Could you send me any example. I want to display few informtion in my meta information.

  2. DanielMay 27, 2023

    Unfortunately we do not have any examples. Your developer will know how to work with this filter normally.

  3. andreas krugerJuly 5, 2021

    How to get the $this var into the custom function in function.php

  4. MaksFebruary 24, 2020

    How do I use these filters?

  5. FredrikOctober 15, 2019

    Hooking into any of these filters makes the content you place there appear twice in the PDF page. Hook runs twice for some reason?

  6. WeLaunchOctober 15, 2019

    What hooks exactly?