Function to return unlinked comma separated names of tags
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
// Function to return unlinked comma separated names of tags
function the_tags_unlinked() {
$tags = get_the_tags();
if ( $tags ) {
$tags = wp_list_pluck( $tags, 'name' );
$tags = implode( ', ', $tags );
return 'Tags: ' . $tags;
}
}