If you want to extend the native WordPress search to include meta fields, for example, it's advisable to look at the fired filters . To ensure that pagination continues to work and that future search improvements aren't compromised, the `posts_search` hook is recommended. The following code, using the REGEXP and ExtractValue functions, extends this search to include posts that contain one of the entered search terms in all meta fields.
04dab4ed835deeafde5ce44275163864