boot(); } add_action( 'plugins_loaded', 'transtrix_boot' ); /** * Stop the daily cleanup when the plugin is switched off. * * @return void */ function transtrix_deactivate() { wp_clear_scheduled_hook( 'transtrix_daily_cleanup' ); } register_deactivation_hook( __FILE__, 'transtrix_deactivate' );