WordPress action hook

litespeed_tag_add

Fired by 16 WordPress plugins, running on 7.1M+ sites between them.

How to use litespeed_tag_add

It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_action( 'litespeed_tag_add', function( $tags ) {
	// Your code runs here.
}, 10, 1 );

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

16 plugins that fire litespeed_tag_add

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

  1. LiteSpeed Cache icon LiteSpeed Cache7+ million installs do_action( 'litespeed_tag_add', $tag . $id ) thirdparty/nextgengallery.cls.php:222
  2. Ninja Tables icon Ninja Tables70,000+ installs do_action( 'litespeed_tag_add', 'ninja_tables_light_speed_clear_cache' ) app/Hooks/Handlers/PublicDataHandler.php:96
  3. WP Social Ninja icon WP Social Ninja30,000+ installs do_action( 'litespeed_tag_add', 'wpsn_purge_twitter_feed' ) app/Hooks/Handlers/ShortcodeHandler.php:464
  4. Custom Feed for TikTok icon Custom Feed for TikTok1,000+ installs do_action( 'litespeed_tag_add', 'wpsn_purge_tiktok' ) app/Hooks/Handlers/ShortcodeHandler.php:27
  5. Verowa Connect icon Verowa Connect100+ installs do_action( 'litespeed_tag_add', $arr_verowa_shortcodes[ $int_key ] ) includes/cache/class-litespeed-cache.php:126
  6. Bit Connect icon Bit Connect100+ installs do_action( 'litespeed_tag_add', self::TAG ) backend/app/Services/PageCache.php:269
  7. PetPress icon PetPress70+ installs do_action( 'litespeed_tag_add', self::LITESPEED_TAG ) pp-CachePurge.php:20
  8. WP Blast icon WP Blast20+ installs do_action( 'litespeed_tag_add', 'wpblast_crawler' ) inc/third-party/litespeed-cache/litespeed-cache-functions.php:15
  9. AOO Shop icon AOO ShopFewer than 10 installs do_action( 'litespeed_tag_add', self::LS_TAG ) includes/class-host-cache.php:79
  10. IndiaTVDNA Turbo Cache icon IndiaTVDNA Turbo CacheFewer than 10 installs do_action( 'litespeed_tag_add', $tags ) includes/class-itdna-litespeed-integration.php:223
  11. Yatoon Social Feed icon Yatoon Social FeedFewer than 10 installs do_action( 'litespeed_tag_add', self::TAG ) includes/class-cache.php:16
  12. Amitry Job Board icon Amitry Job BoardFewer than 10 installs do_action( 'litespeed_tag_add', self::TAG ) includes/class-amjobs-cache.php:121
  13. EstudoBiblico Bíblia Digital icon EstudoBiblico Bíblia DigitalFewer than 10 installs do_action( 'litespeed_tag_add', $tags ) includes/class-bdwp70-plugin.php:814
  14. Swirv icon SwirvFewer than 10 installs do_action( 'litespeed_tag_add', 'swirv' ) includes/RedirectHandler.php:879
  15. Linkmora icon LinkmoraFewer than 10 installs do_action( 'litespeed_tag_add', 'linkmora' ) includes/widgets/functions.php:273
  16. Cliedesk icon CliedeskFewer than 10 installs do_action( 'litespeed_tag_add', self::TAG ) src/Infrastructure/Http/NoCache.php:98

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.