Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. add_filter( 'woo_portfolio_item_extras_html', 'woo_custom_portfolio_item_extras_html', 10, 2 );
  2.  
  3. function woo_custom_portfolio_item_extras_html ( $html, $data ) {
  4.  
  5.     if ( $data['display_url'] != '' ) {
  6.         $html = str_replace( 'class="button"', 'class="button" target="_blank"', $html );
  7.     }
  8.  
  9.     return $html;
  10. } // End woo_custom_portfolio_item_extras_html()
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