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 |
---|---|
434 | /* translators: %s: Name of the constant used. */ |
435 | __( 'WordPress security and maintenance releases are blocked by %s.' ), |
436 | "<code>define( 'WP_AUTO_UPDATE_CORE', false );</code>" |
437 | ), |
438 | 'severity' => 'fail', |
439 | ); |
440 | } |
441 |
|
442 | /** This filter is documented in wp-admin/includes/class-core-upgrader.php */ |
443 | if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) { |
444 | return array( |
445 | 'description' => sprintf( |
446 | /* translators: %s: Name of the filter used. */ |
447 | __( 'WordPress security and maintenance releases are blocked by the %s filter.' ), |
448 | '<code>allow_minor_auto_core_updates</code>' |
449 | ), |
450 | 'severity' => 'fail', |
451 | ); |
452 | } |