Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'woo_portfolio_item_extras_html', 'woo_custom_portfolio_item_extras_html', 10, 2 );
- function woo_custom_portfolio_item_extras_html ( $html, $data ) {
- if ( $data['display_url'] != '' ) {
- $html = str_replace( 'class="button"', 'class="button" target="_blank"', $html );
- }
- return $html;
- } // End woo_custom_portfolio_item_extras_html()
Add Comment
Please, Sign In to add comment