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 |
---|---|
1065 | * |
1066 | * @param string $type The type of update being checked: 'theme' or 'plugin'. |
1067 | * @param bool|null $update Whether to update. The value of null is internally used |
1068 | * to detect whether nothing has hooked into this filter. |
1069 | * @param object $item The update offer. |
1070 | * @return bool True if auto-updates are forced for `$item`, false otherwise. |
1071 | */ |
1072 | function wp_is_auto_update_forced_for_item( $type, $update, $item ) { |
1073 | /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
1074 | return apply_filters( "auto_update_{$type}", $update, $item ); |
1075 | } |
1076 |
|
1077 | /** |
1078 | * Determines the appropriate auto-update message to be displayed. |
1079 | * |
1080 | * @since 5.5.0 |
1081 | * |
1082 | * @return string The update message to be shown. |
1083 | */ |