Title: heartbeat api question
Last modified: January 12, 2022

---

# heartbeat api question

 *  Resolved [Antony Booker](https://wordpress.org/support/users/antonynz/)
 * (@antonynz)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/heartbeat-api-question/)
 * I noticed this plugin uses the heartbeat API. Can you provide details on what
   this plugin uses heartbeat for, as a user would be required to be logged in and
   waiting for heartbeat to run is it required? Is it just for the b2s_delete_sched_post
   action?
 * It looks like this function fires when a post is trashed as well. If it is required
   could this be switched to a cron job instead? This would ensure it runs reliably
   in case a user logs out for example.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Blog2Social-Support](https://wordpress.org/support/users/blog2socialsupport/)
 * (@blog2socialsupport)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/heartbeat-api-question/#post-15247446)
 * Hello,
 * Thanks for reaching out.
 * Please be so kind as to make sure that heartbeats is working properly on your
   website because WordPress and Blog2Social are working with heartbeats by default.
 * Of course, you can deactivate or regulate heartbeats with plugins such as “Heartbeats
   Control” or “WP Rocket”. However, deactivating heartbeats prevents the background
   tasks of WordPress and Blog2Social from being executed properly.
    For instance,
   sharing posts automatically in your social media is blocked by the plugin “Heartbeat
   Control”. Please make sure that the plugin is not set to “disable everywhere”.
 * It might occur that no heartbeat is sent between the time you publish your post
   on your blog and logging out if heartbeats are limited with the plugin “WP Rocket”.
   If you log in again, a heartbeat will be executed directly, which will send the
   data. Therefore, please do not limit heartbeats to make sure that your posts 
   are shared automatically on your social media.
    However, if you want to regulate
   heartbeats anyway, you can do so without selectively deactivating the plugin:
   [http://www.wpbeginner.com/plugins/how-to-limit-heartbeat-api-in-wordpress/](http://www.wpbeginner.com/plugins/how-to-limit-heartbeat-api-in-wordpress/)
 * Please let me know if you have any other questions.
 *  Thread Starter [Antony Booker](https://wordpress.org/support/users/antonynz/)
 * (@antonynz)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/heartbeat-api-question/#post-15343570)
 * Will the scheduled post also fire from a cron job in case an author closes the
   window?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘heartbeat api question’ is closed to new replies.

 * ![](https://ps.w.org/blog2social/assets/icon-256x256.png?rev=3076476)
 * [Blog2Social: Social Media Auto Post & Scheduler](https://wordpress.org/plugins/blog2social/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blog2social/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blog2social/)
 * [Active Topics](https://wordpress.org/support/plugin/blog2social/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blog2social/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blog2social/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Antony Booker](https://wordpress.org/support/users/antonynz/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/heartbeat-api-question/#post-15343570)
 * Status: resolved