A curiosity with wp_update_post() function
-
When “Update” is pressed in a post, does wp_update_post run? It seems not. On a web page I use Polylang. I change the language of a post using pll_set_post_language and then call wp_update_post.
The post assumes the category in the correct language but does not update the tags in the new language.
However, if afterwards I only press “Update” from the list of posts or editing the post, then the tags are updated correctly and automatically.
So something more than wp_update_post has to be done after pressing “Update” right?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘A curiosity with wp_update_post() function’ is closed to new replies.