$field Field. * @var array $rules Saved rules. * @var string $id Element ID. * @var array $emails Order emails. */ use SmartWP\AdminPowerups\Admin\Fields; use SmartWP\AdminPowerups\Admin\Icons; defined( 'ABSPATH' ) || exit; $apwc_rule = static function ( $index, array $rule ) use ( $emails ) { ?>
    $apwc_title ) : ?>
    'apwc_att_products_' . $index, 'type' => 'search', 'source' => 'products', 'label' => __( 'Only when the order has these products', 'admin-powerups-for-woocommerce' ), ), (array) ( $rule['products'] ?? array() ) ); Fields::render( 'email-routing', array( 'id' => 'apwc_att_categories_' . $index, 'type' => 'search', 'source' => 'product_cat', 'label' => __( '…or products in these categories', 'admin-powerups-for-woocommerce' ), ), (array) ( $rule['categories'] ?? array() ) ); ?>
    1. $apwc_r ) : ?>

    >