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);
Hooking into any of these filters makes the content you place there appear twice in the PDF page. Hook runs twice for some reason?
What hooks exactly?
How do I use these filters?
How to get the $this var into the custom function in function.php
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.
Unfortunately we do not have any examples. Your developer will know how to work with this filter normally.