Hi,
I need to automatically update a field group after a custom post of a different type is created.
I have tried this:
add_action('save_post_default-tabs-info', 'fr_update_retreats_after_default_tabs', 10, 3);
function fr_update_retreats_after_default_tabs {
wp_update_post(array('ID' => 34));
}
Where the field group ID is 34, from the edit url: wp-admin/post.php?post=34&action=edit
Is there a way to update the field group upon the save_post hook run?
Thanks