automatic_updater_disabled

automatic_updater_disabled

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('automatic_updater_disabled') is found 2 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 58
    		 * @since 3.7.0
    		 *
    		 * @param bool $disabled Whether the updater should be disabled.
    		 */
    		return apply_filters( 'automatic_updater_disabled', $disabled );
    	}
    
    	/**
    	 * Checks whether access to a given directory is allowed.
    	 *
    	 * This is used when detecting version control checkouts. Takes into account
    
  • /wp-admin/includes/class-wp-site-health-auto-updates.php line 118
    	 * @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>'
    				),