Well, I figured it out and thought I’d post just in case anyone had the same problem…
Turns out that this…
// Save print post
add_action('save_post', 'add_ion_print_post_category_automatically');
add_action('save_post', 'ion_save_print_posts_meta', 1, 2);
Should have been this…
// Save print post
add_action('publish_ion_print_post', 'add_ion_print_post_category_automatically');
add_action('publish_ion_print_post', 'ion_save_print_posts_meta', 1, 2);
That is to say that the structure is add_action(‘publish_your-custom-post-type’
I thought you HAD to use “save_post” or “publish_post” but turns out I needed to add my custom post type name in there too. Silly me.
Incidentally, I’ve tried simply putting the entire code of both plugins combined into the normal functions file of my theme, but it made no difference.
Cheers!