Where to add the filter on multisite
-
Hello,
I would like to change the Schema type of the rating. On your FAQ′s it says to add the following filter:<?php
add_filter( ‘wp_postratings_schema_itemtype’, ‘wp_postratings_schema_itemtype’ );
function wp_postratings_schema_itemtype( $itemtype ) {
return ‘itemscope itemtype=”https://schema.org/Recipe”‘;
}
?>Question 1: Should i add it on the functions.php file?
Question 2: In case of using a multisite instal, how can i add that filter affecting only one of the sites, not all.Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Where to add the filter on multisite’ is closed to new replies.