Reply To: How to remove/alter schema.org micro data?

#7190
Ron
Keymaster

On the parent theme’s function.php, change the original frontier_schema() function to this (I’ll be adding this change on the next theme update):

function frontier_schema( $name ) {
	$value = frontier_get_schema( $name );
	echo apply_filters( 'frontier_schema', $value, $name );
}

Then on your custom php file use something like this:

add_filter( 'frontier_schema', 'st_frontier_get_schema', 10, 2 );

function st_frontier_get_schema( $value, $name ) {
  // some code here
}