-
My previous developer wrote the following code to display all custom field data:
<?php $meta = getProductCustomFields( $product->get_id() ); ?> <?php foreach ( $meta as $field => $value ): ?> <?php if( $value !== '' ) { ?> <p> <strong class="field"><?php echo $field; ?></strong><br /> <span class="value"><?php echo $value; ?></span> </p> <?php } ?> <?php endforeach; ?>
Because of this, even the RankMath data in custom fields were displayed on the website. And after I deactivated the plugin, following RankMath custom field data still existed; rank_math_robots a:1:{i:0;s:5:”index”;}
1. How do I remove all RankMath data from the custom fields?
2. Or, how do I modify the developer’s code above to exclude Rank Math’s custom field data?
Thank you in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The ticket ‘Hide custom field values on website’ is closed to new replies.