add_link

FUNCTION wp-includes\rest-api\class-wp-rest-response.php (ligne 2) github
REST API: WP_REST_Response class

Paramètres

Entrée :
$rel, $href, $attributes = array(
Sortie :
@param string $rel        Link relation. Either an IANA registered type,
@param string $href       Target URI for the link.
@param array  $attributes Optional. Link parameters to send along with the URL. Default empty array.

Utilisation

// Utilisation de la fonction add_link
$result = add_link($rel, $href, $attributes = array();

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

Actualités

Chargement des actualités...