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 |
---|---|
1863 | * See the allow_dev_auto_core_updates, allow_minor_auto_core_updates, and |
1864 | * allow_major_auto_core_updates filters for a more straightforward way to |
1865 | * adjust core updates. |
1866 | * |
1867 | * @since 3.7.0 |
1868 | * |
1869 | * @param bool $update Whether to update. |
1870 | * @param object $item The update offer. |
1871 | */ |
1872 | $update = apply_filters( 'auto_update_' . $type, $update, $item ); |
1873 |
|
1874 | if ( ! $update ) { |
1875 | if ( 'core' == $type ) |
1876 | $this->send_core_update_notification_email( $item ); |
1877 | return false; |
1878 | } |
1879 |
|
1880 | // If it's a core update, are we actually compatible with its requirements? |
1881 | if ( 'core' == $type ) { |