daily pastebin goal
68%
SHARE
TWEET

WooCommerce - Add text after shop content

lorro Nov 19th, 2017 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // WooCommerce - Add text after shop content
  3.   add_action( 'woocommerce_after_main_content', 'my_text', 20 );
  4.   function my_text() {
  5.     if( is_shop() ) {
  6.       print '<p>My text here</p>';
  7.     }
  8.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top