Important security update, please update to Osclass 3.7.4
At Osclass we have changed our Privacy Policy and Terms of Use in order to adapt them to the new General Data Protection Regulation (GDPR). We want you to know what user data we store, what we need them for, and who we share them with in each specific case. Furthermore, we are making it even easier for you to exercise your right to manage your own data.
Our goal is that you enjoy the best possible experience with our website. As the GDPR comes into force, legislation requires us that you grant us permission—both to us and our partners—to store cookies in your browser. Remember you can find more information about what we do with your data by clicking here.
I accept Osclass SL’s Terms of Use and Cookies Policy and grant them permission to manage my data.
You won't do it via hooks. It's not possible.Edit, anyway, by searching into custom fields the speed of the search is reduced.
With my first solution the speed is not reduced, but with this core mod it is.
From the begining of this topic. Putting custom fields values into the description before save and removing them before displaying the description in view.
You can search on google marius ciclistu ft_min_word_len and see the search core mods to see how I edited there the description before save and before displaying it with addunderline and removeunderline functions.
I did not update it but there are hooks for editing the item before saving it. Teseo gave me the hook solution for that.
osc_add_filter('item_add_prepare_data', 'cust_filter_title_description'); osc_add_filter('item_edit_prepare_data', 'cust_filter_title_description'); ?>https://stackoverflow.com/questions/43015613/how-to-modify-ft-min-word-len-4-to-ft-min-word-len-1-so-that-osclass-3-7-1-can-s