Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The Template for displaying product archives, including the main shop page which is a post type archive
- *
- * This template can be overridden by copying it to yourtheme/woocommerce/archive-product.php.
- *
- * HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer).
- * will need to copy the new files to your theme to maintain compatibility. We try to do this.
- * as little as possible, but it does happen. When this occurs the version of the template file will.
- * be bumped and the readme will list any important changes.
- *
- * @see http://docs.woothemes.com/document/template-structure/
- * @author WooThemes
- * @package WooCommerce/Templates
- * @version 2.0.0
- */
- if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly
- }
- if ( class_exists( 'Groups_User' ) ) {
- $redirect = true;
- if ( $user_id = get_current_user_id() ) {
- $user = new Groups_User( $user_id );
- if ( $user->can( 'Approved' ) ) {
- $redirect = false;
- }
- }
- if ( $redirect ) {
- wp_redirect( get_bloginfo( 'home' ) );
- exit;
- }
- }
- get_header( 'shop' ); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement