Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*### Yoast Schema Graph Modifications ###*/
- /* Remove from article graph */
- add_filter( 'wpseo_schema_article', function( $data ) {
- if ( isset( $data['datePublished'] ) )
- unset( $data['datePublished'] );
- if ( isset( $data['dateModified'] ) )
- unset( $data['dateModified'] );
- if ( isset( $data['uploadDate'] ) )
- unset( $data['uploadDate'] );
- return $data;
- });
- /* Remove from webpage graph */
- add_filter( 'wpseo_schema_webpage', function( $data ) {
- if ( isset( $data['datePublished'] ) )
- unset( $data['datePublished'] );
- if ( isset( $data['dateModified'] ) )
- unset( $data['dateModified'] );
- if ( isset( $data['uploadDate'] ) )
- unset( $data['uploadDate'] );
- return $data;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement