affiliate_id ) ? $affiliate->affiliate_id : ''; // get the affiliate's rates $rates = affiliatewp_affiliate_product_rates()->get_rates( $affiliate_id ); if ( ! $rates ) { $rates = array(); } ?> supported_integrations(); $enabled_integrations = affiliate_wp()->integrations->get_enabled_integrations(); if ( $enabled_integrations ) { echo '

' . __( 'Product Rates', 'affiliatewp-affiliate-product-rates' ) . '

'; } // add a table for each integration foreach ( $enabled_integrations as $integration_key => $integration ) { // make sure we only load a table for our supported integrations if ( in_array( $integration_key, $supported_integrations ) ) { ?>
' . $integration . ''; ?> $rates_array ) : $product = isset( $rates_array['products'] ) ? $rates_array['products'] : ''; $rate = isset( $rates_array['rate'] ) ? $rates_array['rate'] : ''; $type = ! empty( $rates_array['type'] ) ? $rates_array['type'] : 'percentage'; $products = affiliatewp_affiliate_product_rates()->get_products( $integration_key ); ?>
×
×