core_auto_updates_settings() – Display WordPress auto-updates settings.

You appear to be a bot. Output may be restricted

Description

Display WordPress auto-updates settings.

Usage

core_auto_updates_settings();

Parameters

Returns

void

Source

File name: wordpress/wp-admin/update-core.php
Lines:

101 to 138 of 138
          '<a href="%s" class="core-auto-update-settings-link core-auto-update-settings-link-disable">%s</a>',
          wp_nonce_url( add_query_arg( 'value', 'disable', $action_url ), 'core-major-auto-updates-nonce' ),
          __( 'Switch to automatic updates for maintenance and security releases only.' )
        );
      }
    } elseif ( $upgrade_minor ) {
      _e( 'This site is automatically kept up to date with maintenance and security releases of WordPress only.' );

      if ( $can_set_update_option ) {
        echo '<br />';
        printf(
          '<a href="%s" class="core-auto-update-settings-link core-auto-update-settings-link-enable">%s</a>',
          wp_nonce_url( add_query_arg( 'value', 'enable', $action_url ), 'core-major-auto-updates-nonce' ),
          __( 'Enable automatic updates for all new versions of WordPress.' )
        );
      }
    } else {
      _e( 'This site will not receive automatic updates for new versions of WordPress.' );
    }
    ?>
	</p>

	<?php
  
/**
 * Fires after the major core auto-update settings.
 *
 * @since 5.6.0
 *
 * @param array $auto_update_settings {
 *     Array of core auto-update settings.
 *
 *     @type bool $dev   Whether to enable automatic updates for development versions.
 *     @type bool $minor Whether to enable minor automatic core updates.
 *     @type bool $major Whether to enable major automatic core updates.
 * }
 */
  do_action( 'after_core_auto_updates_settings', $auto_update_settings );
}
 

 View on GitHub View on Trac