BP_Nouveau::check_heartbeat_api()

Check the Heartbeat API if it is enabled or not on front end

Description

Source

File: bp-templates/bp-nouveau/buddypress-functions.php

	public function check_heartbeat_api() {
		if ( ! wp_script_is( 'heartbeat', 'registered' ) && ! is_admin() ) {
			update_option( 'bp_wp_heartbeat_disabled', '1' );
		} else {
			update_option( 'bp_wp_heartbeat_disabled', '0' );
        }
    }

Changelog

Changelog
Version Description
BuddyBoss 1.1.2 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.