REST API: WP_REST_Response class
$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 de la fonction add_link
$result = add_link($rel, $href, $attributes = array();
if ($result) {
// Votre logique ici
}
Chargement des actualités...