wphooks.info - delete_transient_{$transient}

delete_transient_{$transient}

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-includes/option.php:
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
	/**
	 * Fires immediately before a specific transient is deleted.
	 *
	 * The dynamic portion of the hook name, `$transient`, refers to the transient name.
	 *
	 * @since 3.0.0
	 *
	 * @param string $transient Transient name.
	 */
	do_action( "delete_transient_{$transient}", $transient );

	if ( wp_using_ext_object_cache() ) {
		$result = wp_cache_delete( $transient, 'transient' );
	} else {
		$option_timeout = '_transient_timeout_' . $transient;
		$option         = '_transient_' . $transient;
		$result         = delete_option( $option );
		if ( $result ) {
			delete_option( $option_timeout );