Advertisement
fauzanjeg

Custom Meta on AMP Mode || Remove Meta Author on AMP Mode

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