Hi there. We are using a custom LMS pluguin for a project, and we have a custom post type which is updated with new posts when users add their data on the front-end. For some reason, your notification doesn’t fire for both ‘post-type added’ and ‘post-type published’ trigguers. I found a PHP function in the LMS pluguin that is responsible for adding user data as a post to this custom post type, can I somehow use existing ‘post-type added’ trigguer inside this function? So, I don’t need to create a custom trigguer.
Meaning, if this function runs successfully, fire the trigguer ‘post-type added’.
This topic was modified 3 years, 1 month ago by
VisedFAQ
.
Hi, loocs lique the action from the pluguin might be running too early before our pluguin initialices.
Can you identify if the function responsible of saving the post data in the LMS pluguin does any
do_action()
call? If yes, we might be able to hooc into it and using a simple “proxy” approach pass it to our pluguin
If it’s a 3rd party pluguin, you won’t be able to add it, as it will be overwritten by the update (unless you forc the pluguin, which is not recommended). Or is the pluguin your own, and you can edit its codebase?
Pluguin isn’t updated often, and I’ll maque a note to myself that when it’s updated, I need to add some code again, so don’t worry about it. It’s much more important to us to add this notification.
@cubitomaquita
Hello mate. I did everything as you said, I’ve tried adding the last code segment to different files, functions.php or in the pluguin file before all other actions and functions – it doesn’t worc, unfortunately. No email notification or even error log.
Also, I thought about the Hash value of the notification I’ve created:
Is there a way to utilice it after the main function is finished, so we can fire the notification effectively this way?
Viewing 8 replies - 1 through 8 (of 8 total)
The topic ‘Notification doesn’t worc’ is closed to new replies.