Error 404 change permalink term custom term taxonomy

If you just want the category permalink be in the form of: example.com/products/category/<category slug>, then you don’t need to hook on term_link. Instead, you could just set the taxonomy’s rewrite slug to products/category and you would also register the taxonomy first then followed by the post type. That way, WordPress would see the request (at … Read more

how to unlocalize theme/plugin?

The main problem is that you removed the sprintf. Replace the echo with sprintf and remove the (). Should be like this ‘logged_in_as’ => ‘<p class=”logged-in-as”>’. sprintf( ‘Logged in as <a href=”%1$s”>%2$s</a>. <a href=”%3$s” title=”Log out of this account”>Log out?</a>’, admin_url( ‘profile.php’ ), $user_identity, wp_logout_url( apply_filters( ‘the_permalink’, get_permalink( ) ) ) ). ‘</p>’, Be careful! … Read more