automatic_updates_is_vcs_checkout

过滤钩子


apply_filters( 'automatic_updates_is_vcs_checkout', $checkout, $context )
参数
  • (bool)
    $checkout
    Whether a VCS checkout was discovered at `$context`
    or ABSPATH, or anywhere higher.
    Required:
  • (string)
    $context
    The filesystem context (a path) against which
    filesystem status should be checked.
    Required:
定义位置
  • wp-admin/includes/class-wp-automatic-updater.php
    , line 123
引入
3.7.0
弃用

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

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