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 |
---|---|
228 | foreach ( $check_dirs as $check_dir ) { |
229 | // phpcs:ignore WordPress.CodeAnalysis.AssignmentInCondition,Squiz.PHP.DisallowMultipleAssignments |
230 | if ( $checkout = @is_dir( rtrim( $check_dir, '\\/' ) . "/$vcs_dir" ) ) { |
231 | break 2; |
232 | } |
233 | } |
234 | } |
235 |
|
236 | /** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */ |
237 | if ( $checkout && ! apply_filters( 'automatic_updates_is_vcs_checkout', true, ABSPATH ) ) { |
238 | return array( |
239 | 'description' => sprintf( |
240 | /* translators: 1: Folder name. 2: Version control directory. 3: Filter name. */ |
241 | __( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ), |
242 | '<code>' . $check_dir . '</code>', |
243 | "<code>$vcs_dir</code>", |
244 | '<code>automatic_updates_is_vcs_checkout</code>' |
245 | ), |
246 | 'severity' => 'info', |