Tag Info

New answers tagged

-1

If you don't want to use WordPress's user management (which is very stable and mature) then you'd need to implement all the forms yourself: one to register, one for login/forgot-password, one to edit user info, and optionally a page for managing users' blood requests - depends on specific requirements. You can do it either with or without AJAX (up to you). ...


0

If you look at the source of the file you can see that it doesn't do anything even if you were to include it except add a warning that "This file no longer needs to be included". So those tutorials are out of date. You don't need to include it. The file you actually need to include, if any file at all, depends on what you want to do exactly, and you don't ...


1

Wordpress uses by default wp_mail()source which is a PHP function very similar to the native PHP mail. Hence this service is provided by your server/host. This function is, however, pluggable, which means it can be overridden by plugins and custom functions, so it might be slightly different in your case.


0

With plugin: Peter's Login Redirect and a new one with fine features Register Plus Redux Enjoy!


2

This is a small code I wrote to batch create generic users <?php $lock = true; //true = disabled (locked) if(!$lock) { // if not locked require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' ); $last_registered_user = $wpdb->get_row("SELECT ID FROM $wpdb->users ORDER BY ID DESC LIMIT 1"); $new_id = $last_registered_user->ID + 1; ...


1

You'll need a plugin to do batch import. This one allows you to import records from a CSV file.


0

To globally redirect after successful login, find this code in wp-login.php, under <form name="loginform"> section. <input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" /> and replace <?php echo esc_attr($redirect_to); ?> with your URL where you want to redirect. The URL must start with http:// and ...


0

This code adapted from: Registration Redirect add_filter( 'registration_redirect', 'ckc_registration_redirect' ); function ckc_registration_redirect() { return home_url(); } This code adapted from: Login Redirect add_filter( 'login_redirect', 'ckc_login_redirect' ); function ckc_login_redirect() { // Change this to the url to Updates page. ...


0

Adding fields At first adding some fields to the registering formular add_action( 'register_form', 'extended_register_form', 10, 0 ); function extended_register_form() { // if an error occurs, we are here again and the // values that are entered in the formular are setup in the $_POST array $age = filter_input( INPUT_POST, 'age', ...



Top 50 recent answers are included