apply_filters( 'automatic_updates_is_vcs_checkout', bool $checkout, string $context )
- Since
- 3.7.0
Filters whether the automatic updater should consider a filesystem location to be potentially managed by a version control system.
Compatibility
- WordPress
- since 3.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
Where this hook fires · 2
wp-admin/includes/class-wp-automatic-updater.php:178WP_Automatic_Updater::is_vcs_checkout()wp-admin/includes/class-wp-site-health-auto-updates.php:254WP_Site_Health_Auto_Updates::test_vcs_abspath()
Source code
* * @param bool $checkout Whether a VCS checkout was discovered at `$context` * or ABSPATH, or anywhere higher. * @param string $context The filesystem context (a path) against which * filesystem status should be checked. */ return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context ); } /** * Tests to see if we can and should update a specific item. * * @since 3.7.0Changelog
Introduced in 3.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.