• Resolved chewbears

    (@chewbears)


    From the settings is there a way to stop the author from being displayed? If not is there a bit of PHP I can add to have the same effect?

    Regards,

    Matt

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi Matt,

    Do you mean that when you share via Discord, the name is displayed? That’s done via oEmbed, which you can disable using this plugin: https://www.ads-software.com/plugins/disable-embeds/.

    As for TSF, it only relays the Facebook and Twitter account identifiers after you fill them in; either via the SEO settings page or via “Authorial Info” on your profile.

    I hope this helps ?? Cheers!

    I also want to know this, but just want to remove the author from it not the embed. On discord it shows my name at the top of every link shared. Just want to remove my name.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi @eldritchgreene

    You can remove the name with this filter:

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

    Note that Discord may store response data. So, test it out by sharing a new post!

    We’re considering implementing this filter as a feature in The SEO Framework, as the ever-growing Discord prominently uses the data. Cheers!

    Where should I put that code? I’m new with WordPress.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi @justtalz

    If you’re new to WordPress, then I recommend sticking with plugins. This one disables embeds completely, and lets Discord rely on Open Graph metadata instead: https://www.ads-software.com/plugins/disable-embeds/.

    If you’re willing to give it a go anyway, check out our tutorial on placing filters here: https://theseoframework.com/docs/using-filters/#where. Be mindful that erroneous file changes may crash your website, so it’s best to keep a backup at hand.

    Cheers ??

    @stormzahti
    I removed your response here, since you’re rather asking a new question. Please start a new topic instead. And if you want, you may there link to this thread for background.
    Since this thread was already old and stale, I’ll close it now.

    If you need to contact the moderators about this then you can do so via the Slack #forums channel.

    To use that channel you need a Slack account. You can obtain one via these instructions.

    Slack – https://make.www.ads-software.com/chat/

    When you contact the #forums channel, inform them what your www.ads-software.com forum user ID is. That will help the moderators find your account and ascertain what the issue is.

    If you do use Slack do not direct message me or any other moderator. Use the #forums channel and any moderator there can assist you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove Author Meta’ is closed to new replies.