Switch language

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




update_home_siteurl [ WordPress Function ]

update_home_siteurl ( $old_value, $value )
Parameters:
  • (string) $old_value
  • (string) $value
Defined at:



If siteurl or home changed, flush rewrite rules.

Source


<?php
function update_home_siteurl$old_value$value ) {
    if ( 
defined"WP_INSTALLING" ) )
        return;

    
// If home changed, write rewrite rules to new location.
    
flush_rewrite_rules();
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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