__( 'Role & Customer Prices', 'tier-pricing-table' ), 'target' => 'role-customer-pricing-data', 'class' => ( function () { $types = array_merge( TierPricingTablePlugin::getSupportedSimpleProductTypes(), TierPricingTablePlugin::getSupportedVariableProductTypes() ); $classes = array_map( function ( $type ) { return 'show_if_' . $type; }, $types ); return $classes; } )(), ); return $productTabs; } public function render() { if ( ! apply_filters( 'tiered_pricing_table/admin/role_customer_pricing_tab_active', false ) ) { return; } global $post; ?>