Hi @adam_1,
Thanks for your message.
It sounds like the badges might be using a different set of statuses to standard WordPress posts in order to be published.
Do you know what these might be?
Also, what notifications are you using on this custom post type?
Thanks,
Jack
Thread Starter
Adam_1
(@adam_1)
Hi Jack,
Thanks for the quick reply!
I’m afraid I do not not know if the Yith Badge Management plugin uses different statuses but I will have a look into this now.
I was initially trying # ‘Badge’ Scheduled # but have since tried all available options and to no avail.
I also have an email logger which is not registering any emails being sent when using Custom Post Type – ‘Badge’.
Thank you
Adam
Hi Adam,
Are you able to test with another custom post type that either you’ve set up just to make sure that custom post type notifications are working for you?
It’s possible that the YITH Badge Management plugin isn’t using standard WordPress techniques to add badges so won’t trigger notifications if this is the case.
Let me know how you get on with the statuses.
Thanks,
Jack
Thread Starter
Adam_1
(@adam_1)
Hi Jack,
I have tried Custom post type ‘product’ which all seems to work perfectly.
I think you must be right with YITHs statuses.
I’ve found the following in the functions, does this look right to you?
'edit_' . $singular_base => true,
'read_' . $singular_base => true,
'delete_' . $singular_base => true,
'edit_' . $plural_base => true,
'edit_others_' . $plural_base => true,
'publish_' . $plural_base => true,
'read_private_' . $plural_base => true,
'delete_' . $plural_base => true,
'delete_private_' . $plural_base => true,
'delete_published_' . $plural_base => true,
'delete_others_' . $plural_base => true,
'edit_private_' . $plural_base => true,
'edit_published_' . $plural_base => true,
There’s more there than i thought were standard but not 100% i’m in the right place here.
Apologies for my rusty knowledge.
Adam
Hi @adam_1,
Good to know that the issue is limiting to a 3rd party plugin and not your site.
That code looks like it’s for user capabilities to me as opposed to post statuses.
Try searching for something like get_post_status or wp_insert_post in the plugin code?
Thanks,
Jack
Thread Starter
Adam_1
(@adam_1)
Hi Jack,
I searched through everything and no new post statuses are declared.
I contacted YITH and they said the plugin uses the standard default post statuses.
Any ideas?
Really appreciate the help so far.
Cheers,
Adam
Hi @adam_1,
If it’s using anything other than ‘draft_to_publish’ then the new post notification won’t pick it up.
Are you able to find out which post status transition they’re using?
Thanks,
Jack