Hide nick-name in social-share on WordPress

<?php
/*
    Plugin Name: Remove Nick
    Plugin URI: http://www.mikjaer-consulting.dk
    Description: Stuff
    Author: Mikkel Mikjaer Christensen
    Version: 1.0.0
    Author URI: https://www.mikjaer-consulting.dk
 */

add_filter( 'oembed_response_data', 'disable_embeds_filter_oembed_response_data_' );
function disable_embeds_filter_oembed_response_data_( $data ) {
    unset($data['author_url']);
    unset($data['author_name']);
    return $data;
}

Source: https://wordpress.stackexchange.com/questions/369151/how-to-remove-author-name-and-link-from-a-shared-link-preview

Dette indlæg blev udgivet i Uncategorized. Bogmærk permalinket.