How can I flush rewrite rules after saving or updating any page? Pretty much a newbie and trying to figure out how this would work.
add_action( 'save_post', 'my_save_post_function', 10, 3 );
function my_save_post_function( ) {
flush_rewrite_rules();
}