flush_rewrite_rules_hard

flush_rewrite_rules_hard

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('flush_rewrite_rules_hard') is found 1 times:

  • /wp-includes/class-wp-rewrite.php line 1899
    1895
    1896
    1897
    1898
    1899
    1900
    1901
    1902
    1903
    1904
    1905
    * @since 3.7.0
     *
     * @param bool $hard Whether to flush rewrite rules "hard". Default true.
     */
    if ( ! $hard || ! apply_filters( 'flush_rewrite_rules_hard', true ) ) {
        return;
    }
    if ( function_exists( 'save_mod_rewrite_rules' ) ) {
        save_mod_rewrite_rules();
    }
    if ( function_exists( 'iis7_save_url_rewrite_rules' ) ) {