pre_auto_update WordPress Action Hook

The pre_auto_update hook is called before WordPress updates are processed.

do_action( 'pre_auto_update', string $type, object $item, string $context ) #

Fires immediately prior to an auto-update.


Parameters

$type

(string)The type of update being checked: 'core', 'theme', 'plugin', or 'translation'.

$item

(object)The update offer.

$context

(string)The filesystem context (a path) against which filesystem access and status should be checked.


Top ↑

Source

File: wp-admin/includes/class-wp-automatic-updater.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.