View difference between Paste ID: RyhNUZ5K and cATYs3Gg
SHOW: | | - or go back to the newest paste.
1-
function pm_autoupdate_uri_bulkedit($post_id) {
1+
function save_client_locations_meta($post_id, $post, $update) {
2
	global $permalink_manager_uris;
3
4
	$permalink_manager_uris[$post_id] = Permalink_Manager_URI_Functions_Post::get_default_post_uri($post_id);
5
6
	update_option('permalink-manager-uris', $permalink_manager_uris);
7
}
8-
add_action('woocommerce_update_product', 'pm_autoupdate_uri_bulkedit', 10, 1);
8+
add_action('save_post', 'save_client_locations_meta', 10, 3);