• Resolved rmn92

    (@rmn92)


    Hello, how can i remove ‘brand’ from permalink?
    Current slug for a brands page is: /brand/name
    Is there anyway to change the brands slugs to /name

    The plugin itself is not compatible with Premmerce Permalink Manager for WooCommerce.

    And adding the following code to function.php has no effect:

    add_filter( 'pwb_taxonomy_with_front', function(){
      return false;
    } );

    same with:

    function fix271218_pwb_taxonomy_args( $args, $taxonomy, $object_type ) {
    
        if ( 'pwb-brand' === $taxonomy && is_array( $args ) ) {
            /* alter the rewrite with front arg */
            $args[ 'rewrite' ][ 'with_front' ] = false;
        }
        return $args;
    }
    add_filter( 'register_taxonomy_args', 'fix271218_pwb_taxonomy_args', 10, 3 );

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Remove ‘/brand’ from permalink’ is closed to new replies.