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.
This hook occurs 4 times in this file.
Line | Code |
---|---|
967 | 'tested' => '', |
968 | 'requires_php' => '', |
969 | 'compatibility' => new stdClass(), |
970 | ); |
971 | $item = array_merge( $item, array_intersect_key( $plugin, $item ) ); |
972 | } |
973 |
|
974 | $type = 'plugin'; |
975 | /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
976 | $auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item ); |
977 |
|
978 | if ( ! is_null( $auto_update_forced ) ) { |
979 | $enabled = $auto_update_forced; |
980 | } else { |
981 | $enabled = in_array( $plugin_path, $auto_updates, true ); |
982 | } |
983 |
|
984 | if ( $enabled ) { |
985 | $auto_updates_string = __( 'Auto-updates enabled' ); |
Line | Code |
1111 | 'url' => '', |
1112 | 'package' => '', |
1113 | 'requires' => '', |
1114 | 'requires_php' => '', |
1115 | ); |
1116 | } |
1117 |
|
1118 | $type = 'theme'; |
1119 | /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
1120 | $auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item ); |
1121 |
|
1122 | if ( ! is_null( $auto_update_forced ) ) { |
1123 | $enabled = $auto_update_forced; |
1124 | } else { |
1125 | $enabled = in_array( $active_theme->stylesheet, $auto_updates, true ); |
1126 | } |
1127 |
|
1128 | if ( $enabled ) { |
1129 | $auto_updates_string = __( 'Enabled' ); |
Line | Code |
1199 | 'url' => '', |
1200 | 'package' => '', |
1201 | 'requires' => '', |
1202 | 'requires_php' => '', |
1203 | ); |
1204 | } |
1205 |
|
1206 | $type = 'theme'; |
1207 | /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
1208 | $auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item ); |
1209 |
|
1210 | if ( ! is_null( $auto_update_forced ) ) { |
1211 | $enabled = $auto_update_forced; |
1212 | } else { |
1213 | $enabled = in_array( $parent_theme->stylesheet, $auto_updates, true ); |
1214 | } |
1215 |
|
1216 | if ( $enabled ) { |
1217 | $parent_theme_auto_update_string = __( 'Enabled' ); |
Line | Code |
1289 | 'url' => '', |
1290 | 'package' => '', |
1291 | 'requires' => '', |
1292 | 'requires_php' => '', |
1293 | ); |
1294 | } |
1295 |
|
1296 | $type = 'theme'; |
1297 | /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
1298 | $auto_update_forced = apply_filters( "auto_update_{$type}", null, (object) $item ); |
1299 |
|
1300 | if ( ! is_null( $auto_update_forced ) ) { |
1301 | $enabled = $auto_update_forced; |
1302 | } else { |
1303 | $enabled = in_array( $theme_slug, $auto_updates, true ); |
1304 | } |
1305 |
|
1306 | if ( $enabled ) { |
1307 | $auto_updates_string = __( 'Auto-updates enabled' ); |