Title: automatic_updates_is_vcs_checkout
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘automatic_updates_is_vcs_checkout’, bool $checkout, string $context )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#wp--skip-link--target)

Filters whether the automatic updater should consider a filesystem location to be
potentially managed by a version control system.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#parameters)󠁿

 `$checkout`bool

Whether a VCS checkout was discovered at `$context` or ABSPATH, or anywhere higher.

`$context`string

The filesystem context (a path) against which filesystem status should be checked.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-automatic-updater.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-automatic-updater.php#L178)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-automatic-updater.php#L178-L178)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Site_Health_Auto_Updates::test_vcs_abspath()](https://developer.wordpress.org/reference/classes/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()](https://developer.wordpress.org/reference/classes/wp_automatic_updater/is_vcs_checkout/)`wp-admin/includes/class-wp-automatic-updater.php` |

Checks for version control checkouts.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/automatic_updates_is_vcs_checkout/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.7.0](https://developer.wordpress.org/reference/since/3.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fautomatic_updates_is_vcs_checkout%2F)
before being able to contribute a note or feedback.