Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Suscribirme a este sitio (wordpress multisite)
if (isset($_POST['suscribirme'])) {
$blog_id = get_current_blog_id();
$user_ID = get_current_user_id();
$role = 'subscriber';
add_user_to_blog($blog_id, $user_ID, $role);
<form action="?suscribirme" method="post">
<input type="hidden" name="action" value="suscribirme">
<input type="submit" value="Suscribirme" name="suscribirme" id="suscribirme" class="button">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.