WooCommerce Excerpt Alot-plugin
(Doorverwezen vanaf WooCommerce Product Teaser (plugin))
Naar navigatie springen
Naar zoeken springen
Simple. See this source code for details:
<?php /** * Plugin Name: WooCommerce Excerpt Alot * Plugin URI: http:#wiki.devliegendebrigade.nl/index.php?title=WooCommerce_Excerpt_Alot-plugin * Description: Add the standard WooCommerce product excerpts on archive pages * Version: 1.0 * Author: Jeroen Strompf - http:#devliegendebrigade.nl/ * * P.s.: Do you really need function "woocommerce_product_teaser_display_excerpt()"? * Can't you just directy reference "the_excerpt()" at the add_action-statement? * */ # Create function to show the excerpt ##################################### # # Just a function with an arbitrary name # It does one thing: Call function the_excerpt(), which # outputs the excerpt/teaser/stuff # function woocommerce_product_teaser_display_excerpt() { the_excerpt(); } # hook #######################/ # # Add an action to call the function above. # add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_product_teaser_display_excerpt', 40 );