WP login pages redirect to homepage (cannot login)
WP login pages redirect to homepage (cannot login)
WP login pages redirect to homepage (cannot login)
Please post the line of code that uses wp_lostpassword_url() (Can’t comment not enough rep :()
Use register_form action hook. For example: add_action(‘register_form’, ‘my_required_checkbox’); function my_required_checkbox() { echo ‘<input type=”checkbox” name=”agree” value=””> ‘ . __(‘I agree’, ‘lang’); // add javascript part here } For Javascript part, take a look how to determine if checkbox is checked here.
Login user after registration programmatically
Just replace this line: $admin_email = is_limit_login_multisite() ? get_site_option(‘admin_email’) : get_option(‘admin_email’); with : $admin_email=”[email protected]” But I don’t recommend hardcoding the email address.
WordPress logs out on protocol switch
Create custom field for users to check if they agreed to terms
I see you are using “Divi” theme and that uses “Layout Builder”. You can not insert Php function in the layout builder. However what you can do is install this plugin to execute php within the posts / pages ( it’s quite old plugin, try to see if you can find something similar). https://wordpress.org/plugins/wp-exec-php/ and … Read more
For any change (especially when it comes to database), you will need to backup first. But for changing old links from WordPress admin area, I frequently use Search and Replace plugin. You could try changing the links using this plugin, but make sure you have a full backup of both database and files before making … Read more
You need to hack a little bit to achieve this. First of all, don’t touch WordPress default login. That can mess things up a lot. I think for your case, it would be best to create a secondary login system. For this, you would need to store the customer numbers in a separate table.(It’s not … Read more