Advertisement
fauzanjeg

Remove Author Meta on AMP mode

Oct 28th, 2021
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.27 KB | None | 0 0
  1. /* Remove Author Meta on AMP mode */
  2. function remove_author_meta_in_amp( $args ) {
  3.     if ( ( $key = array_search( 'meta-author', $args ) ) !== false ) {
  4.         unset( $args[$key] );
  5.     }
  6.     return $args;
  7. }
  8. add_filter( 'amp_post_article_header_meta', 'remove_author_meta_in_amp' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement