On this page
apply_filters( 'automatic_updates_is_vcs_checkout', bool $checkout, string $context )
Filters whether the automatic updater should consider a filesystem location to be potentially managed by a version control system.
Parameters
$checkoutbool-
Whether a VCS checkout was discovered at
$contextor ABSPATH, or anywhere higher. $contextstring-
The filesystem context (a path) against which filesystem status should be checked.
Source
File: wp-admin/includes/class-wp-automatic-updater.php. View all references
return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
Related
Used By
| Used By | Description |
|---|---|
| WP_Site_Health_Auto_Updates::test_vcs_abspath() wp-admin/includes/class-wp-site-health-auto-updates.php | Checks if WordPress is controlled by a VCS (Git, Subversion etc). |
| WP_Automatic_Updater::is_vcs_checkout() wp-admin/includes/class-wp-automatic-updater.php | Checks for version control checkouts. |
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout