Modify WooCommerce PDF Catalog Category Description

Adding the following code into your functions.php will overwrite the category description for the category ID 12.

function modify_category_description( $description, $category_id) {

	if($category_id == 12) {
		$description = 'Modified description for category ID 12';
	}
	return $description;
}
add_filter( 'woocommerce_pdf_catalog_category_description', 'modify_category_description', 10, 2 );

2 thoughts on “Modify WooCommerce PDF Catalog Category Description

Leave a Reply

Your email address will not be published. Required fields are marked *