Astra_Docs_Loader::schedule_cleanup()
Schedule a cleanup.
Description
Deletes the docs file on a regular basis. This way docs file will get updated regularly, and we avoid edge cases where unused files remain in the server.
Return
(void)
Source
File: inc/lib/docs/class-astra-docs-loader.php
public function schedule_cleanup() { if ( ! wp_next_scheduled( 'astra_delete_docs_folder' ) && ! wp_installing() ) { wp_schedule_event( time(), self::CLEANUP_FREQUENCY, 'astra_delete_docs_folder' ); // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.cron_functionality_wp_schedule_event } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |