Forum Replies Created
-
Found an answer to my own question: just take a look at this
make custom ajax callbacks survive to plugin updates: RESOLVED
in reply to: Form Field ValidationPlease take a look at this
make custom ajax callbacks survive to plugin updates: RESOLVED
if you are interested in adding custom validations outside ajax.php
in reply to: Phone Number ValidationI’ve resolved customizing the register template and adding an hidden input field named user_email, already filled with a dummy email address (using $uniq_id also).
As I have an italian cell number as username, I’ve then modified plugin’s ajax.php adding a new ajax_callback to check the correct syntax of the number.Please consider to add some do_action before the most important action of your plugin, so developer can manipulate data after/before they are submitted, loaded, saved to db etc etc.
By the way, can I execute some code every time user profiles are saved? I know userpro sends an email at every profile change and I’d like to do some other actions on the saved data (without changing plugin code).I’ve tried these wp hooks
add_action(‘personal_options_update’, ‘update_extra_profile_fields’,99);
add_action(‘edit_user_profile_update’, ‘update_extra_profile_fields’,99);but they are fired ONLY on the back-end (as user profiles are editable only in the back-end by default). Is there something similar to use in the frontend on userpro “edit” template?
Thanks, Daniele.
in reply to: modify submitted form data before saveIs there a way my addition to side validation can survive between updates of the plugin? Can I use some hook to add my validation without touching plugin’s ajax.php?
thanks
in reply to: Form Field ValidationWell, I can confirm at least the warning on hooks-actions.php on line 258 (the only warning on my part, for now). Looking into the code, I think adding an isset() should fix it, but I can’t really understand from where that $id come from and why.
WP version:4.0.1
UserPro version: 2.14in reply to: Errors after activatingIs there a valid coding reason for this? No fixes or workarounds? I can contribute with soome code if you could point me in the right direction.
Please let us know if we have to give up with this issue.
in reply to: search filter is not working on wordpress home pageit is the right way, evenif, as I can see in the code, the value turn_off_initial_results is never read: the code check only if the parameter exists, so setting it to 0 or 1 leads to the same result.
To fix the code change line 2661 of userpro/funciotns/api.php from
if (isset($args['turn_off_initial_results']) && ( !isset($_GET['searchuser']) && !isset($_GET['emd-search']))) {
to
if (isset($args['turn_off_initial_results']) && $args['turn_off_initial_results'] == 1 && ( !isset($_GET['searchuser']) && !isset($_GET['emd-search']))) {
Hope the author fix the code in a future release.
in reply to: Only Search ButtonYou made my day bro!
Thanks
in reply to: My complete Italian Language file .po