Version 1.0.25

This commit is contained in:
ultimatemember
2015-01-26 16:58:31 +02:00
parent 33617b72c5
commit adebeee3d5
16 changed files with 561 additions and 333 deletions
+17 -2
View File
@@ -61,19 +61,34 @@
$post_id = get_option('woocommerce_shop_page_id');
} else if ( is_archive() ) {
return;
} else {
if ( !get_post_type() || !isset($post->ID) ) return;
}
if ( !isset( $post_id ) )
$post_id = $post->ID;
$args = $ultimatemember->access->get_meta( $post_id );
extract($args);
if ( !isset( $args['custom_access_settings'] ) || $args['custom_access_settings'] == 0 ) return;
if ( !isset( $args['custom_access_settings'] ) || $args['custom_access_settings'] == 0 ) {
$post_id = apply_filters('um_access_control_for_parent_posts', $post_id );
$args = $ultimatemember->access->get_meta( $post_id );
extract($args);
if ( !isset( $args['custom_access_settings'] ) || $args['custom_access_settings'] == 0 ) {
return;
}
}
$redirect_to = null;