Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function schema_for_contact_page() {
- /* Will work only for the pages where the page slug it's contact ,Contact or CONTACT */
- if( is_page( array( 'contact','Contact', 'CONTACT') ) ){
- add_filter( 'kleo_schema_org_type', function() { return 'ContactPage'; } );
- }
- }
- add_action( 'wp', 'schema_for_contact_page' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement