automatic_updates_is_vcs_checkout

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

Description

add_filter( 'automatic_updates_is_vcs_checkout', (string) $return_false ); 

Parameters (1)

0. $return_false (string) => '__return_false'
The return false.

Usage

To run the hook, copy the example below.
  1. $return_false = apply_filters( 'automatic_updates_is_vcs_checkout', $return_false ); 
  2.  
  3. if ( !empty( $return_false ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the automatic_updates_is_vcs_checkout callback 
  2. function filter_automatic_updates_is_vcs_checkout( $return_false ) { 
  3. // make filter magic happen here... 
  4. return $return_false
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'automatic_updates_is_vcs_checkout', 'filter_automatic_updates_is_vcs_checkout', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'automatic_updates_is_vcs_checkout', 'filter_automatic_updates_is_vcs_checkout', 10, 1 ); 

Defined (2)

The filter is defined in the following location(s).

/json-endpoints/jetpack/class.jetpack-json-api-core-modify-endpoint.php  
  1. add_filter( 'automatic_updates_is_vcs_checkout', '__return_false' ); 
  1. remove_filter( 'automatic_updates_is_vcs_checkout', '__return_false' );