{"id":370,"date":"2018-11-13T07:14:12","date_gmt":"2018-11-13T06:14:12","guid":{"rendered":"https:\/\/demos.welaunch.io\/woocommerce-pdf-catalog\/?post_type=faq&p=370"},"modified":"2020-07-31T10:00:01","modified_gmt":"2020-07-31T08:00:01","slug":"pdf-catalog-data-filters","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/pdf-catalog-data-filters\/","title":{"rendered":"PDF Catalog Data & HTML Filters for custom post data"},"content":{"rendered":"
Additional filters have been introduced with version 1.7.1. and up. These can be used to add addtional HTML into the data. You need to return a HTML inside your add_filters option:<\/p>\n
\/\/ Category HTML\napply_filters( 'woocommerce_pdf_catalog_category_html', $categoryTemplate->get_template($categoryLayout), $category_id);\n\n\/\/ Product HTML\napply_filters('woocommerce_pdf_catalog_single_product_html', $html, $this->data->ID)\n\n\/\/ All Product Data\napply_filters('woocommerce_pdf_catalog_product_data', $this->data);\n\n\/\/ Product Information Filters - return $HTML\napply_filters('woocommerce_pdf_catalog_before_product_information', '', $this->data->ID);\napply_filters('woocommerce_pdf_catalog_before_product_information_start', '', $this->data->ID);\napply_filters('woocommerce_pdf_catalog_before_product_information_read_more', '', $this->data->ID);\napply_filters('woocommerce_pdf_catalog_before_product_information_categories', '', $this->data->ID);\napply_filters('woocommerce_pdf_catalog_before_product_information_end', '', $this->data->ID);\napply_filters('woocommerce_pdf_catalog_after_product_information', '', $this->data->ID);\n<\/pre>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-370","faq","type-faq","status-publish","hentry","faq_topics-pdf-catalog-filter-hooks"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=370"}],"version-history":[{"count":1,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/370\/revisions"}],"predecessor-version":[{"id":5703,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/370\/revisions\/5703"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=370"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}