Created
April 2, 2020 14:40
-
-
Save alexstandiford/9d782151f26e456c9b2f0628f7dc57a4 to your computer and use it in GitHub Desktop.
Create a custom Referral Type in AffiliateWP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('affwp_referral_type_init',function( $registry ){ | |
$registry->register_type( 'custom_type', array( | |
'label' => __( 'Custom Type', 'text-domain' ), | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment