WordPress filter hook

puc_get_vcs_service

Fired by 13 WordPress plugins, running on 7,890+ sites between them.

How to use puc_get_vcs_service

It's a filter: your callback receives the value and 3 more arguments, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'puc_get_vcs_service', function( $service, $host, $path, $metadataUrl ) {
	// Change $service here.
	return $service;
}, 10, 4 );

Argument names come from If-So Dynamic Content's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

13 plugins that fire puc_get_vcs_service

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. If-So Dynamic Content icon If-So Dynamic Content7,000+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) extensions/extension-base/lib/plugin-update-checker/Puc/v5p6/PucFactory.php:276
  2. Events Manager icon Events Manager600+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) stonehenge/server/Puc/v4p6/Factory.php:211
  3. Events Manager icon Events Manager100+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) stonehenge/server/Puc/v4p6/Factory.php:211
  4. Events Manager icon Events Manager90+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) stonehenge/server/Puc/v4p6/Factory.php:211
  5. Events Manager icon Events Manager50+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) stonehenge/server/Puc/v4p6/Factory.php:211
  6. Tap To Donate for Give by Jovvie icon Tap To Donate for Give by Jovvie10+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) plugin-update-checker/Puc/v4p10/Factory.php:270
  7. SCM icon SCM10+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) plugin-update-checker/Puc/v4p6/Factory.php:211
  8. WP Roster icon WP Roster10+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) inc/pro-wpr/plugin-update-checker/Puc/v4p11/Factory.php:279
  9. FireEMS Stats icon FireEMS Stats10+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) update-check/Puc/v4p10/Factory.php:270
  10. SCD icon SCD10+ installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) plugin-update-checker/Puc/v4p6/Factory.php:211
  11. GeniousSonu Site Checkup icon GeniousSonu Site CheckupFewer than 10 installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) includes/plugin-update-checker/Puc/v5p7/PucFactory.php:276
  12. SCM icon SCMFewer than 10 installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) plugin-update-checker/Puc/v4p6/Factory.php:211
  13. SCD icon SCDFewer than 10 installs apply_filters( 'puc_get_vcs_service', $service, $host, $path, $metadataUrl ) plugin-update-checker/Puc/v4p6/Factory.php:211

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.