ACF\Site_Health

Site_Health::__constructpublicACF 6.3

Constructs the ACF_Site_Health class.

Метод класса: Site_Health{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Site_Health = new Site_Health();
$Site_Health->__construct();

Список изменений

С версии 6.3 Введена.

Код Site_Health::__construct() ACF 6.4.2

public function __construct() {
	add_action( 'debug_information', array( $this, 'render_tab_content' ) );
	add_action( 'acf_update_site_health_data', array( $this, 'update_site_health_data' ) );

	if ( ! wp_next_scheduled( 'acf_update_site_health_data' ) ) {
		wp_schedule_event( time(), 'weekly', 'acf_update_site_health_data' );
	}

	// ACF events.
	add_action( 'acf/first_activated', array( $this, 'add_activation_event' ) );
	add_action( 'acf/activated_pro', array( $this, 'add_activation_event' ) );
	add_filter( 'acf/pre_update_field_group', array( $this, 'pre_update_acf_internal_cpt' ) );
	add_filter( 'acf/pre_update_post_type', array( $this, 'pre_update_acf_internal_cpt' ) );
	add_filter( 'acf/pre_update_taxonomy', array( $this, 'pre_update_acf_internal_cpt' ) );
	add_filter( 'acf/pre_update_ui_options_page', array( $this, 'pre_update_acf_internal_cpt' ) );
}