wp_insert_post( array(
'ID' => $post_id,
'post_name' => 'my-new-slug',
), true);
Apparently wp_insert_post needs the true argument..
wp_insert_post( array(
'ID' => $post_id,
'post_name' => 'my-new-slug',
), true);
Apparently wp_insert_post needs the true argument..