Switch language

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




_config_wp_home [ WordPress Function ]

_config_wp_home ( $url = '' )
Access:
  • private
Parameters:
  • (string) $url URL for the home location
Returns:
  • (string) Homepage location.
Defined at:



Retrieve the WordPress home page URL.

If the constant named 'WP_HOME' exists, then it will be used and returned by the function. This can be used to counter the redirection on your local development environment.

Source


<?php
function _config_wp_home$url '' ) {
    if ( 
defined'WP_HOME' ) )
        return 
untrailingslashitWP_HOME );
    return 
$url;
}
?>

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