// Edit the price field to remove the £ sign
add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
if ( isset( $entity['offers']['price'] ) ) {
// Remove £ or any non-numeric characters except . and ,
$entity['offers']['price'] = preg_replace( '/[^0-9\.,]/', '', $entity['offers']['price'] );
}
return $entity;
});