Does anyone know how I would go about appending a URL parameter to child site URL when you click the admin auto login url from the sites table?
I am looking to append something like this:
https://URL.com/wp-admin/index.php&uid=123456789
Does anyone know how I would go about appending a URL parameter to child site URL when you click the admin auto login url from the sites table?
I am looking to append something like this:
https://URL.com/wp-admin/index.php&uid=123456789
Hey @webdiner
Right now, this is not possible.
We will add a hook for it next week. I’ll update you via this thread once we do so.
Awesome! That would be a huge help.
Hey @webdiner
We’ve added the hook, and prepared the MainWP Dashboard and Child plugins for you.
I have sent them to you via a private message.
After you install those versions, use this filter:
add_filter( 'mainwp_open_site_login_required_params',
'mycustom_mainwp_open_site_login_required_params', 10, 3 );
function mycustom_mainwp_open_site_login_required_params( $value, $params, $website ) {
return array(
'uid' => wp_rand(10000, 99999),
);
}
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.