Switch language

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




_config_wp_siteurl [ WordPress Function ]

_config_wp_siteurl ( $url = '' )
Access:
  • private
Parameters:
  • (string) $url URL to set the WordPress site location.
Returns:
  • (string) The WordPress Site URL
Defined at:



Retrieve the WordPress site URL.

If the constant named 'WP_SITEURL' is defined, then the value in that constant will always be returned. This can be used for debugging a site on your localhost while not having to change the database to your URL.

Source


<?php
function _config_wp_siteurl$url '' ) {
    if ( 
defined'WP_SITEURL' ) )
        return 
untrailingslashitWP_SITEURL );
    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