automatic_updates_is_vcs_checkout

automatic_updates_is_vcs_checkout

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('automatic_updates_is_vcs_checkout') is found 2 times:

  • /wp-admin/includes/class-wp-automatic-updater.php line 178
    		 *                        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.0
    
  • /wp-admin/includes/class-wp-site-health-auto-updates.php line 245
    			}
    		}
    
    		/** This filter is documented in wp-admin/includes/class-wp-automatic-updater.php */
    		if ( $checkout && ! apply_filters( 'automatic_updates_is_vcs_checkout', true, ABSPATH ) ) {
    			return array(
    				'description' => sprintf(
    					/* translators: 1: Folder name. 2: Version control directory. 3: Filter name. */
    					__( 'The folder %1$s was detected as being under version control (%2$s), but the %3$s filter is allowing updates.' ),
    					'<code>' . $check_dir . '</code>',
    					"<code>$vcs_dir</code>",
    

See this hook used in plugins: