Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pre-process Custom Field content before it is sent to SearchWP's highlighter
<?php
// Pre-process Custom Field content before it is sent to SearchWP's highlighter.
add_filter( 'searchwp_th_pre_process_meta_value', function( $meta_value, $meta_key, $post_id ) {
// TODO: Customize $meta_value in any way you see fit.
return $meta_value;
}, 20, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.