WP_Site_Health_Auto_Updates::test_filters_automatic_updater_disabled

Advertisement

Summery Summery

Check if automatic updates are disabled by a filter.

Syntax Syntax

WP_Site_Health_Auto_Updates::test_filters_automatic_updater_disabled()

Return Return

(array) The test results.

Source Source

File: wp-admin/includes/class-wp-site-health-auto-updates.php

	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
	public function test_filters_automatic_updater_disabled() {
		/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
		if ( apply_filters( 'automatic_updater_disabled', false ) ) {
			return array(
				'description' => sprintf(
					/* translators: %s: Name of the filter used. */
					__( 'The %s filter is enabled.' ),
					'<code>automatic_updater_disabled</code>'

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.