WordPress | 28/01/2023 | Gabriele Romanato WordPress: impostare i tag di un post lato codice In WordPress possiamo impostare i tag di un post lato codice. La soluzione รจ la seguente: $post_id = 34; $post_tags = [ 21, 12 ]; wp_set_post_terms( $post_id, $post_tags ); Condividi Twitter LinkedIn Facebook โ Precedente WordPress: aggiornare la data di un post in bozza Successivo โ WordPress: la differenza tra la funzione wp_strip_all_tags() e strip_tags()