Skip to content

Instantly share code, notes, and snippets.

@MarkKevin08
Created November 10, 2019 23:50
Show Gist options
  • Save MarkKevin08/779a7cae79f2c0e5bf3191d39db29469 to your computer and use it in GitHub Desktop.
Save MarkKevin08/779a7cae79f2c0e5bf3191d39db29469 to your computer and use it in GitHub Desktop.
Change "View Policies" tab
add_filter( 'woocommerce_product_tabs', function( $tabs ) {
if( isset( $tabs['policies'] ) ) {
$tabs['policies']['title'] = 'New title';
}
return $tabs;
}, 30 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment