Avvia un progetto

Filtri di dati e HTML di PDF Catalog per dati personalizzati degli articoli

Dalla versione 1.7.1 sono stati introdotti filtri aggiuntivi, con cui aggiungere HTML ai dati. Nella tua funzione add_filter devi restituire un HTML:

// Category HTML
apply_filters( 'woocommerce_pdf_catalog_category_html', $categoryTemplate->get_template($categoryLayout), $category_id);
// Product HTML
apply_filters('woocommerce_pdf_catalog_single_product_html', $html, $this->data->ID)
// All Product Data
apply_filters('woocommerce_pdf_catalog_product_data', $this->data);
// Product Information Filters - return $HTML
apply_filters('woocommerce_pdf_catalog_before_product_information', '', $this->data->ID);
apply_filters('woocommerce_pdf_catalog_before_product_information_start', '', $this->data->ID);
apply_filters('woocommerce_pdf_catalog_before_product_information_read_more', '', $this->data->ID);
apply_filters('woocommerce_pdf_catalog_before_product_information_categories', '', $this->data->ID);
apply_filters('woocommerce_pdf_catalog_before_product_information_end', '', $this->data->ID);
apply_filters('woocommerce_pdf_catalog_after_product_information', '', $this->data->ID);