Automattic\WooCommerce\Internal\TransientFiles
TransientFilesEngine::unschedule_expired_files_cleanup()
Remove the scheduled action that does the expired files cleanup, if it's scheduled.
Method of the class: TransientFilesEngine{}
No Hooks.
Return
null
. Nothing (null).
Usage
$TransientFilesEngine = new TransientFilesEngine(); $TransientFilesEngine->unschedule_expired_files_cleanup(): void;
TransientFilesEngine::unschedule_expired_files_cleanup() TransientFilesEngine::unschedule expired files cleanup code WC 9.3.3
public function unschedule_expired_files_cleanup(): void { if ( $this->expired_files_cleanup_is_scheduled() ) { as_unschedule_action( self::CLEANUP_ACTION_NAME, array(), self::CLEANUP_ACTION_GROUP ); } }