File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,20 @@ function disableauthors_filter_author($name) {
77 return $ disableauthorsAuthorName ;
88}
99
10+ function disableauthors_filter_oembed ($ data ) {
11+ global $ disableauthorsAuthorName ;
12+
13+ $ data ['author_name ' ] = $ disableauthorsAuthorName ;
14+
15+ return $ data ;
16+ }
17+
1018add_filter ('the_author ' , 'disableauthors_filter_author ' , 1 );
1119add_filter ('get_the_author_display_name ' , 'disableauthors_filter_author ' , 1 );
1220add_filter ('get_the_author_first_name ' , 'disableauthors_filter_author ' , 1 );
1321add_filter ('get_the_author_last_name ' , 'disableauthors_filter_author ' , 1 );
1422add_filter ('get_the_author_nickname ' , 'disableauthors_filter_author ' , 1 );
1523add_filter ('get_the_author_user_login ' , 'disableauthors_filter_author ' , 1 );
24+
25+
26+ add_filter ('oembed_response_data ' , 'disableauthors_filter_oembed ' );
You can’t perform that action at this time.
0 commit comments