Action hook 'deleted_site_transient'

in WP Core File wp-includes/option.php at line 2526

View Source

deleted_site_transient

Action Hook
Description
Fires after a transient is deleted.

Hook Information

File Location wp-includes/option.php View on GitHub
Hook Type Action
Line Number 2526

Hook Parameters

Type Name Description
string $transient Deleted transient name.

Usage Examples

Basic Usage
<?php
// Hook into deleted_site_transient
add_action('deleted_site_transient', 'my_custom_function', 10, 1);

function my_custom_function($transient) {
    // Your custom code here
}

Source Code Context

wp-includes/option.php:2526 - How this hook is used in WordPress core
<?php
2521  		 *
2522  		 * @since 3.0.0
2523  		 *
2524  		 * @param string $transient Deleted transient name.
2525  		 */
2526  		do_action( 'deleted_site_transient', $transient );
2527  	}
2528  
2529  	return $result;
2530  }
2531  

PHP Documentation

<?php
/**
		 * Fires after a transient is deleted.
		 *
		 * @since 3.0.0
		 *
		 * @param string $transient Deleted transient name.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 1
  • File: wp-includes/option.php
Related Hooks

Related hooks will be displayed here in future updates.