Extending Search to plugins
-
More a suggestion here than a problem.
It would be great to have some way to extend the search data types without moding.
I think this is the only thing the plugin is missing, some filters.
If this helps anyone searching for a solution, I did a mod like this:1 – Delay execution of the plugin (this seems to have had no effect in functionality), changing the execution in main plugin file from:
new ACFBetterSearch();
to:
add_action('after_setup_theme', function(){ new ACFBetterSearch(); } );2 – Created a filter in search.php, after settings were loaded inside loadSettings():
$this->fieldsTypes = apply_filters( 'acfbs_fieldtypes', $this->fieldsTypes);Would be great to get something like this in an update 🙂
The topic ‘Extending Search to plugins’ is closed to new replies.