wordpress fcm plugin not working on scheduled posts correctly

Question

I am very new to wordpress/php, I don’t fully understand it yet.

So I’ve implemented firebase cloud messaging in a wordpress app and I am able to send push notifications with “FCM Push Notification from WP” plugin, and it also works with scheduled posts IF the admin panel is open when the scheduled post is due. Otherwise it will send the notification when I browse to the admin panel. I really don’t understand this code fully, but what could I do to make sure it runs even though I am not logged in as admin?

This is the hooks defined in the plugin

This is the method the functions in the add_action() runs

Any help would be really appreciated.

Regards

0
Sonny 2 years 2022-05-18T03:11:59-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse