WordPress action hook · part of WordPress core

setted_transient

A WordPress core action that 8 plugins also fire themselves, running on 192K+ sites between them.

“Fires after the value for a transient has been set.”

How to use setted_transient

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

functions.php
add_action( 'setted_transient', function( $transient, $value, $expiration ) {
	// Your code runs here.
}, 10, 3 );

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

This hook is fired by WordPress core too. Official reference on developer.wordpress.org →

8 plugins that fire setted_transient

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

  1. Pods icon Pods100,000+ installs do_action( 'setted_transient', $key, $value, $expires ) classes/PodsView.php:615
  2. SecuPress with Simple SSL icon SecuPress with Simple SSL40,000+ installs do_action( 'setted_transient', $transient, $value, 0 ) free/functions/options.php:555
  3. Content Control icon Content Control40,000+ installs do_action( 'setted_transient', $transient, $data['value'], $data['expiration'] ) vendor-prefixed/trustedlogin/client/src/Utils.php:104
  4. Swift Performance Lite icon Swift Performance Lite6,000+ installs do_action( 'setted_transient', $transient, $value, $expiration ) performance.php:2341
  5. SP Move Login icon SP Move Login6,000+ installs do_action( 'setted_transient', $transient, $value, 0 ) free/functions/options.php:544
  6. Dropshipping with Banggood for WooCommerce (Lite version) icon Dropshipping with Banggood for WooCommerce (Lite version)20+ installs do_action( 'setted_transient', $transient, $value, $expiration ) includes/functions.php:407
  7. Dropshipping with eBay for WooCommerce (Lite) icon Dropshipping with eBay for WooCommerce (Lite)10+ installs do_action( 'setted_transient', $transient, $value, $expiration ) includes/functions.php:398
  8. TrustedLogin Connector icon TrustedLogin Connector10+ installs do_action( 'setted_transient', $transient, $data['value'], $data['expiration'] ) php/Utils.php:117

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.