Set Rewrite ‘with_front’ to false

[ad_1]

Hello –

Nevermind, I have written the following filter to override the default args in the plugin and added to my child theme. Works as inteneded now.

add_filter( 'register_taxonomy_args', function( $args, $taxonomy ) {
  if( 'yith_product_brand' === $taxonomy && is_array( $args ) )
    $args['rewrite']['with_front'] = false;
    $args['rewrite']['slug'] = "brands";
  return $args;
}, 99, 2 );

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer