WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
336 | * Fires immediately prior to an auto-update. |
337 | * |
338 | * @since 4.4.0 |
339 | * |
340 | * @param string $type The type of update being checked: 'core', 'theme', 'plugin', or 'translation'. |
341 | * @param object $item The update offer. |
342 | * @param string $context The filesystem context (a path) against which filesystem access and status |
343 | * should be checked. |
344 | */ |
345 | do_action( 'pre_auto_update', $type, $item, $context ); |
346 |
|
347 | $upgrader_item = $item; |
348 | switch ( $type ) { |
349 | case 'core': |
350 | /* translators: %s: WordPress version. */ |
351 | $skin->feedback( __( 'Updating to WordPress %s' ), $item->version ); |
352 | /* translators: %s: WordPress version. */ |
353 | $item_name = sprintf( __( 'WordPress %s' ), $item->version ); |
354 | break; |