Title: Force Permalink not work when quick edit
Last modified: October 10, 2023

---

# Force Permalink not work when quick edit

 *  Resolved [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/)
 * Hi
 * I’m using the setting to force the permalink update when the title change
 * It’s working when i update a product on the admin, but when i quick edit a product,
   change the title, and update, the permalink is not changed and stay with the 
   old one
 * Thanks for your help

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/page/2/?output_format=md)

 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17113132)
 * Hi [@calyweb](https://wordpress.org/support/users/calyweb/),
 * Thank you for reporting this bug. The problem will be patched in the next version
   of plugin. To solve issue before release, could you try replacing line #672 in
   _permalink-manager/out/permalink-manager-admin.js_ file manually?
 * `custom_uri_field.attr('disabled', 'disabled');`
 * with:
 * `custom_uri_field.attr('readonly', 'readonly');`
 * [https://github.com/maciejbis/Permalink-Manager/blob/master/out/permalink-manager-admin.js#L672C10-L672C10](https://github.com/maciejbis/Permalink-Manager/blob/master/out/permalink-manager-admin.js#L672C10-L672C10)
    -  This reply was modified 2 years, 8 months ago by [Maciej Bis](https://wordpress.org/support/users/mbis/).
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17125135)
 * I have not heard from you, so I assume you have resolved the issue. If the above
   hotfix did not work, please feel free to reopen this thread.
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152708)
 * Hi,
 * In fact the slug of wordpress remains the old one as you can see on screenshot
   [https://ibb.co/YtpHkZv](https://ibb.co/YtpHkZv)
 * On the permalink field i have the good url that’s okay : [https://ibb.co/1sbsWDc](https://ibb.co/1sbsWDc)
 * The problem is that for the caching plugins, they always cache the slug, and 
   so we have many many 301 caching urls, which charge more the server, i don’t 
   know if you understand my point. The slug should be the same url as the permalink
   field no ?
 * Many thanks !
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152717)
 * I see also this even if i open the single product page and update. The slug remains
   the old one anyway …
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152736)
 * Hi [@calyweb](https://wordpress.org/support/users/calyweb/),
 * I am not exactly certain if I got the point. I will try to explain it to make
   it more clear.
 * Once the slug is saved, **it will not be automatically updated**. Without Permalink
   Manager, WordPress will use it directly as part of the product’s permalink.
 * If the plugin is enabled, the original product permalink with that slug should
   be changed by the Permalink Manager-controlled custom permalink.
 * You can find more detailed explanation in the below article:
   [https://permalinkmanager.pro/docs/plugin-settings/wordpress-slugs-explained/#what-is-a-wordpress-slug-in-a-nutshell](https://permalinkmanager.pro/docs/plugin-settings/wordpress-slugs-explained/#what-is-a-wordpress-slug-in-a-nutshell)
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152746)
 * Hi,
 * Yes that’s the problem, the original slug is not changed and it always remain
   here (like the screenshot) You can see that the slug does not correspond to the
   one of permalink
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152749)
 * It miss the v (vcaps)
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152828)
 * Okay, I understand. That is how it works by design. You can replicate the same
   behavior even if Permalink Manager is disabled.
 * The product slug is created only once upon publication, and unless you make changes
   manually, it will not be updated again. This is done on purpose to avoid frequent
   changes to the slug, which is not just a part of the native URL but also an identifier
   in addition to the numeric ID.
 * If you would like to force WordPress to automatically update the slug whenever
   the title is changed you can either use an additional plugin:
 * [https://wordpress.org/plugins/automatically-update-permalinks/](https://wordpress.org/plugins/automatically-update-permalinks/)
 * or below code snippet:
 *     ```wp-block-code
       function pm_update_product_slug_on_title_change( $data, $postarr ) {
       	// Check if this is a 'product' post type and the title has changed.
       	if ( $postarr['post_type'] == 'product' && $data['post_title'] !== $postarr['post_title'] ) {
       		// Generate a new slug from the updated title.
       		$new_slug = sanitize_title( $postarr['post_title'] );
   
       		// Update the post_name (slug) in the data array.
       		$data['post_name'] = $new_slug;
       	}
   
       	return $data;
       }
       add_filter( 'wp_insert_post_data', 'pm_update_product_slug_on_title_change', 10, 2 );
       ```
   
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152866)
 * Hi,
 * Thanks for your feedback
 * So for understand, on you side, which element do you update ? If it’s not the
   slug ? I don’t understand …
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152868)
 * And if i use the snippet, it will always be the same one as permalink manager?
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17152953)
 * To make it clear, I will try to explain further the difference between slugs 
   and custom permalinks.
 * The main idea behind Permalink Manager is to **replace the original permalinks**(
   the slugs are a part of them) **with the custom permalinks**. As they can be 
   fully customized, they do not need to have the slugs included. However, by default,
   they follow the original permalink structure, which includes the slugs.
 * The snippet I sent you will automatically **update only the slugs whenever a 
   product title is changed**. This would also affect the original product permalinks(
   used when the plugin is disabled). You can see this clearly when Permalink Manager
   is temporarily deactivated.
 * As the plugin overwrites the original product permalinks with the custom permalinks,
   the custom permalinks are updated in a different (simpler) way. In the plugin
   settings you can enable auto-update mode:
 * [https://permalinkmanager.pro/docs/basics/automatically-update-the-permalinks/#2-auto-update-custom-permalinks](https://permalinkmanager.pro/docs/basics/automatically-update-the-permalinks/#2-auto-update-custom-permalinks)
 * To sum up, if you use the above snippet and have auto-update switched on for 
   custom permalinks, any changes to the product’s title **automatically update 
   both the slug itself and slug inside the custom permalink** to the same value.
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17153946)
 * Thanks for the explanation 🙂
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17169970)
 * I just found another bug,
 * When you duplicate a product to create a new one, it creates a draft, i change
   the title, and when i click on update normally (without permalink manager), the
   slug is updated with the name of the product, but now with permalink, i always
   have the previous name that stay here, please check the screenshot
 * [https://ibb.co/QjKdNft](https://ibb.co/QjKdNft)
 *  Thread Starter [calyweb](https://wordpress.org/support/users/calyweb/)
 * (@calyweb)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17169972)
 * I have to click on the blue button update a second time to make the permalink
   change
 *  Plugin Author [Maciej Bis](https://wordpress.org/support/users/mbis/)
 * (@mbis)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/#post-17169985)
 * If you use “**Yoast Duplicate Post**” plugin, this is not the bug. The custom
   permalink is copied from the parent page with the rest of the post object.
 * To disable this please add add “_custom\_uri_” to “_Do not copy these fields_”
   in “Duplicate Post Options“:
 * ![](https://i0.wp.com/i.imgur.com/kEhyDHw.png?ssl=1)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/page/2/?output_format=md)

The topic ‘Force Permalink not work when quick edit’ is closed to new replies.

 * ![](https://ps.w.org/permalink-manager/assets/icon.svg?rev=2625166)
 * [Permalink Manager Lite](https://wordpress.org/plugins/permalink-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/permalink-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/permalink-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/permalink-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/permalink-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/permalink-manager/reviews/)

 * 18 replies
 * 2 participants
 * Last reply from: [calyweb](https://wordpress.org/support/users/calyweb/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/force-permalink-not-work-when-quick-edit/page/2/#post-17171045)
 * Status: resolved