Created
June 29, 2024 18:53
-
-
Save kankadev/6c8bb4055eb5853f5a84550e2f66168d to your computer and use it in GitHub Desktop.
[remove author] remove author data from embed / sharing in e.g. Discord #embed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment