Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




flush_rewrite_rules [ WordPress Function ]

flush_rewrite_rules ( $hard = true )
Parameters:
  • (bool) $hard Whether to update .htaccess (hard flush) or just update rewrite_rules transient (soft flush). Default is true (hard).
See:
  • WP_Rewrite::flush_rules()
Defined at:



Remove rewrite rules and then recreate rewrite rules.

Source


<?php
function flush_rewrite_rules$hard true ) {
    global 
$wp_rewrite;
    
$wp_rewrite->flush_rules$hard );
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics