Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: want only to make only one blog per user


Aron Jay
Participant

@aronjay

@Internetado,

that was cool, but this is great! :)

<?php

function oci_restrict_access()

{

global $bp, $bp_unfiltered_uri;

if (!is_user_logged_in() &&

(

MEMBERS_SLUG == $bp_unfiltered_uri[0] && !empty( $bp->current_action ) ||

BP_GROUPS_SLUG == $bp->current_component && !empty( $bp->current_action )))

{

nocache_headers();

header(‘Location:’.get_settings(‘siteurl’).’/register’);

exit();

}

}

add_action( ‘wp’, ‘oci_restrict_access’, 3 );

?>

Good Luck!

Skip to toolbar