mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-04-30 11:42:22 +08:00
4 lines
200 B
Text
4 lines
200 B
Text
add_filter( 'affwp_get_referring_affiliate_id', function( $affiliate_id, $reference, $context ) {
|
|
$affiliate_id = affiliate_wp()->tracking->get_affiliate_id();
|
|
return $affiliate_id;
|
|
}, 10, 3 );
|