Setting default category on post update
Setting default category on post update
Setting default category on post update
ACF – Updating all posts of CPT when a custom field from options page is updated
“Update” button missing from block editor
For this I suggest you to use given solution which ensure each post is processed individually without interrupting the batch processing, and also allowing soft deletion to work for both emptying the trash and bulk actions. You need to update the softDelete function with the given code. function softDelete( $postId ) { if ( get_post_type( … Read more
How do I get my Gutenberg element to prevent last modified from updating?
Changing Post Status from Pending to Publish twice daily
Updating post_parent caused the website to become unresponsive for 40 seconds or more
Trying to add a wp block and update the post content using PHP (wp_post_update)
Insert attributes names according to language with polylang programmatically
Found the answer thanks to Jacobs comments + this similar thread: I had to use remove_action() WITH matching priority, like this: function booking_meta( $post_id, $post, $update ) { if ( get_post_type( $post_id ) !== ‘booking’ ) { return; } // Update ACF fields $object_id = get_the_ID(); $owner_id = get_the_author_meta( ‘ID’, $post->post_author ); update_field( ‘object’, $object_id, … Read more