PxO Ink
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] LetsEncrypt Postback SSL ErrorWow Mike! That was a *very* fast reply. Thank you.
Okay, so my guess is that this is from one of the payment processor plugins they use. I’m not familiar with that, so I’ll go research those and take a look.
This error–my guess is this is from a generic Exception handler that WooCommerce uses?
Forum: Hacks
In reply to: WP_Error() and add_filter() (Working With WordPress Core)I also tried the following bit of attempts to make use of WP_Errors() and whatnot:
function updateFields() { $userdata['first_name'] = $_POST['first_name']; $userdata['last_name'] = $_POST['last_name']; wp_insert_user($userdata); } add_filter('user_register', 'updateFields', 10);
As well as trying to make use of
add_filter('registration_errors', 'checkCFields', 10, 1);
, however it appears this bit of code only seems to work with wp-login.php.Does anyone know how this is supposed to go? I’m getting the feeling this is some sort of secret society knowledge.
Forum: Hacks
In reply to: WP_Error() and add_filter() (Working With WordPress Core)I should clarify a bit. I’m not trying to create my own plugin to replace existing core WordPress code. I basically want to adjust wp_insert_user(), which also makes use of the user_register hook, to add a few more forms to be validated and dealt with before being added.
See: https://adambrown.info/p/wp_hooks/hook/user_register?version=3.0&file=wp-includes/registration.php
Forum: Hacks
In reply to: User registration/email notification filtersOkay, to those who were wondering how to deal with the add_filter shenanigans:
add_filter(‘user_register’, ‘my_function’, 10, 1);
The argument is $user_id. YOU DO NOT NEED TO SUPPLY THIS. It’s automatic and/or magical. After that, you have to somehow get custom $_POST information to be visible (hint: use <?php $template->the_instance(); ?> after your ID name.)