@JJJ @cklosowski The privacy functions will include wp-admin/includes/misc.php. The rewrite flush checks for save_mod_rewrite_rules (which is in misc.php). Since save_mod_rewrite_rules is present, it'll used it presuming all of wp-admin has been loaded.