array( 'object', 'lang' ), 'capability' => 'edit_theme_options' ); $slots->register( 'aieo/store', array_merge( $common, array( 'label' => __( 'Store location', 'ai-eshop-optimizer' ), 'kind' => 'single', 'post_types' => array( 'aieo_store' ), 'default' => 'single-aieo_store', ) ) ); $slots->register( 'aieo/competition', array_merge( $common, array( 'label' => __( 'Competition', 'ai-eshop-optimizer' ), 'kind' => 'single', 'post_types' => array( 'aieo_competition' ), 'default' => 'single-aieo_competition', ) ) ); $slots->register( 'aieo/popup', array_merge( $common, array( 'label' => __( 'Popup', 'ai-eshop-optimizer' ), 'kind' => 'single', 'post_types' => array( 'aieo_popup' ), 'default' => 'single-aieo_popup', ) ) ); $slots->register( 'aieo/brand', array( 'label' => __( 'Brand archive', 'ai-eshop-optimizer' ), 'kind' => 'taxonomy', 'taxonomies' => array( 'product_brand' ), 'default' => 'taxonomy-product_brand', 'matches' => array( 'term', 'lang' ), 'capability' => 'edit_theme_options', ) ); } public static function register_defer_regions( $registrar ) { if ( ! is_object( $registrar ) || ! method_exists( $registrar, 'register' ) ) { return; } $registrar->register( 'aieo/recos', array( 'selector' => '.aieo-recommendations[data-section]', 'height' => '320px', 'default' => 'near', ) ); } } }