um_rewrite_flush_rewrite_rules

Hook type

Filter

Description

Enable flushing rewrite rules

Parameters

$stop_flush

(bool) Stop flushing rewrite rules

Usage

<?php add_filter( 'um_rewrite_flush_rewrite_rules', 'function_name', 10, 1 ); ?>

Examples

<?php
add_filter( 'um_rewrite_flush_rewrite_rules', 'my_rewrite_flush_rewrite_rules', 10, 1 );
function my_rewrite_flush_rewrite_rules( $stop_flush ) {
    // your code here
return $stop_flush;
}
?>

Change Log

Since: 2.0

Source

um_rewrite_flush_rewrite_rules is located in includes/core/class-rewrite.php::line 132