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 );

Deja una respuesta

Tu dirección de correo electrónico no será publicada.