Als je met de bulk editor in WooCommerce een nieuw product aanmaakt kan het voorkomen als je ook de Permalink Manager Pro gebruikt dat de url /new-product/ wordt. Om dit op te lossen is er deze code van Permalink Manager, voeg die toe aan je functions.php van je thema of Code Snippets.
function pm_regenerate_product_permalink($product_id, $post_after, $post_before) { if(!class_exists('Permalink_Manager_URI_Functions_Post') || empty($post_after->post_type)) { return; } // Check if the post title was changed if($post_after->post_type == 'product' && $post_before->post_title !== $post_after->post_title) { // Generate the new URI $new_uri = Permalink_Manager_URI_Functions_Post::get_default_post_uri($product_id); // Save the URI in DB Permalink_Manager_URI_Functions::save_single_uri($product_id, $new_uri, false, true); } } add_action('post_updated', 'pm_regenerate_product_permalink', 100, 3);