wordlift-plugin icon indicating copy to clipboard operation
wordlift-plugin copied to clipboard

OneSignal is sending push notifications of entities when an article is published

Open gcuofano opened this issue 5 years ago • 1 comments

The plugin wordpress.org/plugins/onesignal-free-web-push-notifications sends out push notifications on the entities annotated on an article that gets published.

unnamed

For instance, once the article below got published OneSignal also sent the notifications related to the tagged entities:

unnamed (1)

gcuofano avatar Jun 26 '19 07:06 gcuofano

See https://github.com/OneSignal/OneSignal-WordPress-Plugin/issues/39 and https://github.com/OneSignal/OneSignal-WordPress-Plugin/issues/123.

In particular the customer may add

add_filter( 'onesignal_exclude_post', 'onesignal_exclude_post_filter', 10, 3 );
function onesignal_exclude_post_filter( $new_status, $old_status, $post ) {
    return ( 'entity' === get_post_type( $post ) );
}

ziodave avatar Jun 27 '19 13:06 ziodave

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 04 '22 19:10 stale[bot]