wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



_config_wp_home › WordPress Function

Od2.2.0
Przestarzałyn/a
_config_wp_home ( $url = '' )
Dostęp:
  • private
Parametry:
  • (string) $url URL for the home location.
    Wymagane: Nie
    Domyślny: (puste)
Zobacz:
  • WP_HOME
Powrót:
  • (string) Homepage location.
Zdefiniowane na:
Codex:

Retrieves 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.


Źródło

function _config_wp_home( $url = '' ) {
	if ( defined( 'WP_HOME' ) ) {
		return untrailingslashit( WP_HOME );
	}
	return $url;
}