-
-
Save billerickson/8e78bcaea6fc97c75d61d07a39f5ca71 to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/** | |
* Event Schema | |
* | |
*/ | |
function be_event_schema( $attr ) { | |
if ( 'event' == get_post_type() ) { | |
$attr['itemtype'] = 'http://schema.org/Event'; | |
$attr['itemprop'] = ''; | |
$attr['itemscope'] = 'itemscope'; | |
} | |
return $attr; | |
} | |
add_filter( 'genesis_attr_entry', 'be_event_schema', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment