İptal Edildi

Networks for WordPress plugin ! on Multisite - customized logins

Hey guys, I have a Wordpress Multisite.

I'm using Networks for WordPress plugin. so I can create many networks inside my WP multisite

--------------------------

Before you start reading I would recommend to hire those who had experience with that plugin or heard about it so they know the behavior of Multi Network or those who really good in customized WP login/redirection.

--------------------------

First I wanted to redirect users who login from one site in my network to their primary_url / Primary blog. (basically the blog they become subscribe first/ the blog the registered first).

For doing it I'm using this plugin in my mu-plugins:

[url removed, login to view]

or

<?php

/*

Plugin Name: Redirect Users to Primary Site

Plugin URI:

Description: Never see "you do not currently have privileges on this site" when logging in on your multisite ever again!

Version: [url removed, login to view]

Author: khromov

Author URI: [url removed, login to view]

License: GPL2

*/

/* [url removed, login to view] */

add_filter('login_redirect', function($redirect_to, $request_redirect_to, $user)

{

if (!is_wp_error($user) && $user->ID != 0)

{

$user_info = get_userdata($user->ID);

if ($user_info->primary_blog)

{

$primary_url = get_blogaddress_by_id($user_info->primary_blog) . 'wp-admin/';

if ($primary_url) {

wp_redirect($primary_url);

die();

}

}

}

return $redirect_to;

}, 100, 3);

It's doing the job and users are redirected to primary_url. However, because i'm using Networks for WordPress plugin, sites has individuals logins. When user logs in from X site the user redirected to its Primary site (great) BUT he need to login AGAIN !

Without Networks for WordPress plugin users would stay logged in when they visiting subsites because they all in one single network.

Does anyone knows how can I keep the user logged so they don't need to be login again when visiting other networks or to add any codes to the redirection code above so it will keep the user logged ?

I think this work can be done just by exchange codes + if you got it solved I probably use you for another task.

Thank you !

Beceriler: MySQL, PHP, WordPress

Daha fazlasını görün: work for wordpress, wordpress org login, i would recommend, how to start a blog wordpress, hire a wordpress site admin, for hire license, hire networks, php plugin, network admin for hire, name my customized, wordpress license plugin, wordpress login users, php redirect https, logins, wordpress multisite blog, admin wordpress redirect login, wordpress login function, php https redirect http, http redirect https, wordpress registered users, wordpress login redirect, redirect https http, multi user blog, wordpress multisite plugin, wordpress admin redirect login

İşveren Hakkında:
( 5 değerlendirme ) Kansas City, United States

Proje NO: #6505720

1 freelancer bu iş için ortalamada 25$ teklif veriyor

mtthardy4

hi sir thank for project i m very well experienced in word press designing and plug ins developing as well psd to wordpress i had done many fixes on the sites too i had developed plug ins like search , categories s Daha fazlası

in 3 gün içinde150$ USD
(164 Değerlendirme)
6.7
fhm29

Hi there, Thanks for posting your project we are interested in your work & have vast experience in blog creation & customization. We will fix out the problems & that all will be done in few hour & you can che Daha fazlası

1 gün içinde 25$ USD
(0 Değerlendirme)
0.0
Yourhelp0089

A proposal has not yet been provided

1 gün içinde 25$ USD
(0 Değerlendirme)
0.0