WordPress filter hook

cs_get_path_locate

Fired by 17 WordPress plugins, running on 1,140+ sites between them.

How to use cs_get_path_locate

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

functions.php
add_filter( 'cs_get_path_locate', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from Aitasi Coming Soon's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

17 plugins that fire cs_get_path_locate

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

  1. Aitasi Coming Soon icon Aitasi Coming Soon900+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) admin/codestar-framework/cs-framework-path.php:34
  2. Business Template Blocks for WPBakery (Visual Composer) Page Builder icon Business Template Blocks for WPBakery (Visual Composer) Page Builder60+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) inc/framework/cs-framework-path.php:34
  3. Easy Woocommerce Customizer icon Easy Woocommerce Customizer50+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) options/cs-framework-path.php:34
  4. Post Slider icon Post Slider20+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) cs-framework/cs-framework-path.php:34
  5. Nasim Persian Maker icon Nasim Persian Maker20+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) cs-framework-path.php:51
  6. Sticky One-Many icon Sticky One-Many10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) library/csf/stm-framework-path.php:34
  7. My Right Horse icon My Right Horse10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) myrighthorse-path.php:34
  8. Back Top icon Back Top10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) setting-page/cs-framework-path.php:34
  9. CC Manga Comic Reader icon CC Manga Comic Reader10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) lib/codestar-framework/cs-framework-path.php:34
  10. Essential Hover Effects icon Essential Hover Effects10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) admin/framework/cs-framework-path.php:34
  11. Awesome WordPress Slider icon Awesome WordPress Slider10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) inc/cs-framework/cs-framework-path.php:34
  12. Amazing Portfolio icon Amazing Portfolio10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) inc/framework/cs-framework-path.php:34
  13. Ultimate Carousel icon Ultimate Carousel10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) inc/framework/cs-framework-path.php:34
  14. WP TAB icon WP TAB10+ installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) assets/admin/cs-framework-path.php:34
  15. All in All Image Hover Effect icon All in All Image Hover EffectFewer than 10 installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) cu-framework/cs-framework-path.php:34
  16. Electro Pricing Tables Lite icon Electro Pricing Tables LiteFewer than 10 installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) lib/codestar-framework-1.0.1/cs-framework-path.php:34
  17. RS Coming Soon icon RS Coming SoonFewer than 10 installs apply_filters( 'cs_get_path_locate', array( 'basename' => wp_normalize_path( $basename ), 'dir' => wp_normalize_path( $dir ), 'uri' => $uri ) ) admin/cs-framework-path.php:34

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.