I have this function below that is called with the admin_init
Action
function my_flush_rewrites() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
Like this
add_action('admin_init', 'my_flush_rewrites');
I am curious, when is this called? Is this called on every page load? Hopefully not