Created
May 17, 2022 12:49
-
-
Save stefanmm/d1455a52e0f1e5dc7d673bb460609cd5 to your computer and use it in GitHub Desktop.
ACFBS - search by ACF fields only
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function stfn_acfbs_post_fields( $fields ) { | |
// default lista: ['post_title', 'post_content', 'post_excerpt'] | |
$fields = []; | |
return $fields; | |
} | |
add_filter( 'acfbs_search_post_object_fields', 'stfn_acfbs_post_fields', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment