/** * Uninstall hook * * Remove all leftovers from AAM execution * * @return void * * @access public */ public static function uninstall() { //trigger any uninstall hook that is registered by any extension do_action('aam-uninstall-action'); //remove aam directory if exists $dirname = WP_CONTENT_DIR . '/aam'; if (file_exists($dirname)) { AAM_Core_API::removeDirectory($dirname); } //clear schedules wp_clear_scheduled_hook('aam-cron'); }