content_url

FUNCTION wp-includes\link-template.php (ligne 3628) github
Filters the URL to the includes directory.

Paramètres

Entrée :
$path = ''
Sortie :
@param string      $url    The complete URL to the includes directory including scheme and path.
@param string      $path   Path relative to the URL to the wp-includes directory. Blank string
@param string|null $scheme Scheme to give the includes URL context. Accepts
@param string $path Optional. Path relative to the content URL. Default empty.
@return string Content URL link with optional path appended.

Utilisation

// Utilisation de la fonction content_url
$result = content_url($path = '');

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...