deleted_transient
Action HookDescription
Fires after a transient is deleted.Hook Information
File Location |
wp-includes/option.php
View on GitHub
|
Hook Type | Action |
Line Number | 1414 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$transient
|
Deleted transient name. |
Usage Examples
Basic Usage
<?php
// Hook into deleted_transient
add_action('deleted_transient', 'my_custom_function', 10, 1);
function my_custom_function($transient) {
// Your custom code here
}
Source Code Context
wp-includes/option.php:1414
- How this hook is used in WordPress core
<?php
1409 *
1410 * @since 3.0.0
1411 *
1412 * @param string $transient Deleted transient name.
1413 */
1414 do_action( 'deleted_transient', $transient );
1415 }
1416
1417 return $result;
1418 }
1419
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.