Version 1.0.48

This commit is contained in:
ultimatemember
2015-02-10 02:05:27 +02:00
parent 5487c7b6d1
commit b4f313e8bc
21 changed files with 192 additions and 32 deletions
+6 -2
View File
@@ -15,15 +15,19 @@ class UM_Access {
*** @do actions based on priority
***/
function template_redirect() {
global $ultimatemember;
do_action('um_access_homepage_per_role');
do_action('um_access_global_settings');
do_action('um_access_post_settings');
if ( $this->redirect_handler && !$this->allow_access )
if ( $this->redirect_handler && !$this->allow_access ) {
$curr = $ultimatemember->permalinks->get_current_url();
$this->redirect_handler = add_query_arg('redirect_to', $curr, $this->redirect_handler);
exit( wp_redirect( $this->redirect_handler ) );
}
}