Filter hook 'automatic_updates_is_vcs_checkout'

in WP Core File wp-admin/includes/class-wp-site-health-auto-updates.php at line 254

View Source

automatic_updates_is_vcs_checkout

Filter Hook
Description
Checks if WordPress is controlled by a VCS (Git, Subversion etc).

Hook Information

File Location wp-admin/includes/class-wp-site-health-auto-updates.php View on GitHub
Hook Type Filter
Line Number 254

Hook Parameters

This hook doesn't accept any parameters.

Usage Examples

Basic Usage
<?php
// Hook into automatic_updates_is_vcs_checkout
add_filter('automatic_updates_is_vcs_checkout', 'my_custom_filter');

function my_custom_filter() {
    // Your custom filtering logic here
    return 'modified_value';
}

Source Code Context

wp-admin/includes/class-wp-site-health-auto-updates.php:254 - How this hook is used in WordPress core
<?php
 249  				}
 250  			}
 251  		}
 252  
 253  		/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
 254  		if ( $checkout && ! apply_filters( 'automatic_updates_is_vcs_checkout', true, ABSPATH ) ) {
 255  			return array(
 256  				'description' => sprintf(
 257  					/* translators: 1: Folder name. 2: Version control directory. 3: Filter name. */
 258  					__( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ),
 259  					'<code>' . $check_dir . '</code>',

PHP Documentation

<?php
/**
	 * Checks if WordPress is controlled by a VCS (Git, Subversion etc).
	 *
	 * @since 5.2.0
	 *
	 * @return array The test results.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 0
  • File: wp-admin/includes/class-wp-site-health-auto-updates.php
Related Hooks

Related hooks will be displayed here in future updates.