rest_url_details_cache_expiration

rest_url_details_cache_expiration

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('rest_url_details_cache_expiration') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php line 479
    		 * @since 5.9.0
    		 *
    		 * @param int $ttl The time until cache expiration in seconds.
    		 */
    		$cache_expiration = apply_filters( 'rest_url_details_cache_expiration', $ttl );
    
    		return set_site_transient( $key, $data, $cache_expiration );
    	}
    
    	/**
    	 * Retrieves the head element section.