automatic_updater_disabled

automatic_updater_disabled

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('automatic_updater_disabled') is found 2 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 58
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
         * @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
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    * @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>'
                ),