Title: DFC005's Replies | WordPress.org

---

# DFC005

  [  ](https://wordpress.org/support/users/dfc005/)

 *   [Profile](https://wordpress.org/support/users/dfc005/)
 *   [Topics Started](https://wordpress.org/support/users/dfc005/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dfc005/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dfc005/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dfc005/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dfc005/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dfc005/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 167 total)

1 [2](https://wordpress.org/support/users/dfc005/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dfc005/replies/page/3/?output_format=md)…
[10](https://wordpress.org/support/users/dfc005/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/dfc005/replies/page/11/?output_format=md)
[12](https://wordpress.org/support/users/dfc005/replies/page/12/?output_format=md)
[→](https://wordpress.org/support/users/dfc005/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextScripts: Social Networks Auto-Poster] SQL errors in SNAP Plugin](https://wordpress.org/support/topic/sql-errors-in-snap-plugin/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [2 months, 1 week ago](https://wordpress.org/support/topic/sql-errors-in-snap-plugin/#post-18840105)
 * Oh excellent work. I was coming here to look for a solution to why our autoposting
   had stopped but your fix also fixed that. Thanks mate!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] Updated posts get pushed](https://wordpress.org/support/topic/updated-posts-get-pushed/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/updated-posts-get-pushed/#post-18540573)
 *     ```wp-block-code
       // Remove OneSignal action for post updatesfunction prevent_onesignal_notifications_on_update($new_status, $old_status, $post) {    error_log("OneSignal Action Check: post_id={$post->ID}, new_status=$new_status, old_status=$old_status");    if ($new_status === 'publish' && $old_status === 'publish') {        remove_action('transition_post_status', 'onesignal_schedule_notification', 10, 3);        error_log("OneSignal Action Removed: Blocked notification for post update (post_id={$post->ID})");    }}add_action('transition_post_status', 'prevent_onesignal_notifications_on_update', 5, 3);// Set os_update meta for new publications and block for updatesfunction override_onesignal_update_flag($new_status, $old_status, $post) {    error_log("OneSignal Status Transition: post_id={$post->ID}, new_status=$new_status, old_status=$old_status");        if ($new_status === 'publish' && $old_status === 'publish') {        update_post_meta($post->ID, 'os_update', 0); // Disable notifications for updates        error_log("OneSignal: Disabled os_update meta for post update (post_id={$post->ID})");    } elseif ($new_status === 'publish' && $old_status !== 'publish') {        update_post_meta($post->ID, 'os_update', 1); // Enable notifications for new publications        error_log("OneSignal: Enabled os_update meta for new publication (post_id={$post->ID})");    }}add_action('transition_post_status', 'override_onesignal_update_flag', 10, 3);
       ```
   
 * Got sick of waiting for an update so added the above to my `functions.php` to
   stop sending notifications on update.
   I then have the checkbox for “Send notification
   when post is published or updated” checked and it only sends on publish.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] Latest version of plugin sending notifications on updates](https://wordpress.org/support/topic/latest-version-of-plugin-sending-notifications-on-updates/)
 *  Thread Starter [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/latest-version-of-plugin-sending-notifications-on-updates/#post-18539100)
 * Is there any update to this? 
   It seems like it would be such a trivial change
   to seperate it out into two fields:* Automatically send notifications when a 
   post is published* Automatically send notifications when a post is updated
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] Latest version of plugin sending notifications on updates](https://wordpress.org/support/topic/latest-version-of-plugin-sending-notifications-on-updates/)
 *  Thread Starter [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year ago](https://wordpress.org/support/topic/latest-version-of-plugin-sending-notifications-on-updates/#post-18444327)
 * Oh right. Sorry, I see one does so Post and one does say Page!
 * Still, I only want to notifiy on publish. Might revert the plugin for now to 
   the older version.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ad Inserter - Ad Manager & AdSense Ads] Ad Block Detection not working](https://wordpress.org/support/topic/ad-block-detection-not-working/)
 *  Thread Starter [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year ago](https://wordpress.org/support/topic/ad-block-detection-not-working/#post-18413516)
 * Yup, that seems to work! Thanks heaps for the quick service.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ad Inserter - Ad Manager & AdSense Ads] Ad Block Detection not working](https://wordpress.org/support/topic/ad-block-detection-not-working/)
 *  Thread Starter [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year ago](https://wordpress.org/support/topic/ad-block-detection-not-working/#post-18412724)
 * I’ve enabled remote debugging.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] Sending incorrect notification for future scheduled post](https://wordpress.org/support/topic/sending-incorrect-notification-for-future-scheduled-post/)
 *  Thread Starter [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/sending-incorrect-notification-for-future-scheduled-post/#post-18246447)
 * This doesn’t seem to have happened again in recent times. So might have been 
   an intermittent issue with our site.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] New Plugin Update](https://wordpress.org/support/topic/new-plugin-update-3/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/new-plugin-update-3/#post-18228853)
 * Perfect. That works!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] Automatically send notifications when a post is published or updated](https://wordpress.org/support/topic/automatically-send-notifications-when-a-post-is-published-or-updated/)
 *  Thread Starter [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/automatically-send-notifications-when-a-post-is-published-or-updated/#post-18228841)
 * Yes, that’s 100% what we are after!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[OneSignal - Web Push Notifications] New Plugin Update](https://wordpress.org/support/topic/new-plugin-update-3/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/new-plugin-update-3/#post-18226708)
 * > The notification title is now the post title and the body is the first few 
   > characters of the post.
 * This use to be post title and post excerpt.
 * We quite often have quizzes which are simple shortcodes as the first few characters
   of the post. The shortcodes are now being added to the push notification. Is 
   it possible to add an option somewhere we can select an option for the text. 
   Ideally, this is the post excerpt again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[URL Shortify - Simple and Easy URL Shortener] API usage](https://wordpress.org/support/topic/api-usage/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/api-usage/#post-18075262)
 * So the whole section in the plugin for Rest API and creating key/secrets etc 
   is just pointless?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[URL Shortify - Simple and Easy URL Shortener] API usage](https://wordpress.org/support/topic/api-usage/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/api-usage/#post-18070373)
 * Yes, I’m trying to work out how to use the API as well.
 * I’ve setup some new key/secret via the Tools -> Rest API section but cannot find
   any documention or examples on how to use this?
 * I assume it should be quite straight forward. Little help?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextScripts: Social Networks Auto-Poster] autopost stop from update](https://wordpress.org/support/topic/autopost-stop-from-update/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/autopost-stop-from-update/#post-17850731)
 * I believe it’s related to this error: [https://wordpress.org/support/topic/badly-formulated-sql-command-in-cron-job/](https://wordpress.org/support/topic/badly-formulated-sql-command-in-cron-job/)
 * We have the same issue and are awaiting a fix.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[NextScripts: Social Networks Auto-Poster] Badly formulated SQL command in cron job](https://wordpress.org/support/topic/badly-formulated-sql-command-in-cron-job/)
 *  [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/badly-formulated-sql-command-in-cron-job/#post-17847644)
 * Yup, I’m getting the same.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Dracula Dark Mode – Accessibility, Reading Mode & Dark Mode for WordPress] Allow user to enable auto mode](https://wordpress.org/support/topic/allow-user-to-enable-auto-mode/)
 *  Thread Starter [DFC005](https://wordpress.org/support/users/dfc005/)
 * (@dfc005)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/allow-user-to-enable-auto-mode/#post-17811573)
 * Any update on this?

Viewing 15 replies - 1 through 15 (of 167 total)

1 [2](https://wordpress.org/support/users/dfc005/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/dfc005/replies/page/3/?output_format=md)…
[10](https://wordpress.org/support/users/dfc005/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/dfc005/replies/page/11/?output_format=md)
[12](https://wordpress.org/support/users/dfc005/replies/page/12/?output_format=md)
[→](https://wordpress.org/support/users/dfc005/replies/page/2/?output_format=md)