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
// Run if AffiliateWP MLM is Active | |
if ( class_exists( 'AffiliateWP_Multi_Level_Marketing' ) ) { | |
/** | |
* Adds Affiliate URL to Affiliate Data from the Sub Affiliates Tooltip (Downline Only) | |
* | |
* @since 1.1.6 | |
* @return array | |
*/ | |
function affwp_mlm_add_email_aff_data( $aff_data = array(), $affiliate_id = 0, $disabled_aff_data = array() ) { |
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
// Run if AffiliateWP MLM is Active | |
if ( class_exists( 'AffiliateWP_Multi_Level_Marketing' ) ) { | |
/** | |
* Adds Affiliate URL to Affiliate Data from the Sub Affiliates Tooltip (Downline Only) | |
* | |
* @since 1.1.6 | |
* @return array | |
*/ | |
function affwp_mlm_add_url_aff_data( $aff_data = array(), $affiliate_id = 0, $disabled_aff_data = array() ) { |
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 | |
$affiliate_id = affwp_get_affiliate_id(); | |
$bonuses = get_active_bonuses(); | |
$bonus_count = count( $bonuses ); | |
// Run if AffiliateWP Ranks is Active | |
if ( class_exists( 'AffiliateWP_Ranks' ) ) { | |
$ranks = get_ranks(); | |
} |
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 | |
if ( class_exists( 'KB_Support' ) ) { | |
/** | |
* Allow Vendors to Manage Tickets (Make them Support Agents) | |
* | |
* @since 1.0 | |
* @return array | |
*/ |
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
// Make sure AffiliateWP is active | |
if ( function_exists( 'affiliate_wp' ) ) { | |
// Make sure AffiliateWP MLM is active | |
//if ( ! class_exists( 'AffiliateWP_Multi_Level_Marketing' ) ) return; | |
/** | |
* Require a Specific Rank & Product Purchase to Start a New Cycle | |
* | |
* @since 1.0 |
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
#affwp-affiliate-dashboard-invites .affwp-invites-aff-invite-code-header, | |
#affwp-affiliate-dashboard-invites .affwp-invites-aff-invite-code, | |
#affwp-affiliate-dashboard-invites .affwp-invites-aff-invite-code-message {display:none;} |
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 new column to the exported referrals CSV file for the affiliate's Parent | |
*/ | |
function affwp_mlm_export_referrals_csv_cols( $cols ) { | |
$cols['parent_name'] = 'Parent Affiliate'; | |
return $cols; | |
} |
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
/** | |
* Allowed WooCommerce Post Types | |
* | |
* @return bool | |
* @since 1.2.0 | |
* @author Andrea Grillo <[email protected]> | |
*/ | |
public function vendor_can_add_products( $vendor, $post_type ){ | |
$enable_amount = 'yes' == get_option( 'yith_wpv_enable_product_amount' ) ? true : false; | |
if( $enable_amount && 'product' == $post_type ){ |
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
/** | |
* Apply a 30% direct commission rate for affiliates without Sub Affiliates | |
*/ | |
function affwp_mlm_get_non_parent_rate( $rate, $affiliate_id, $type, $reference ) { | |
// If a per-affiliate rate is set, use that | |
if ( affiliate_wp()->affiliates->get_column( 'rate', $affiliate_id ) ) { | |
return $rate; | |
} | |
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
// Run if AffiliateWP MLM is Active | |
if ( class_exists( 'AffiliateWP_Multi_Level_Marketing' ) ) { | |
/** | |
* Removes Specific MLM Affiliate Data from the Sub Affiliates Tooltip (Downline Only) | |
* | |
* @since 1.1.1 | |
* @return array | |
*/ | |
function affwp_mlm_remove_downline_aff_data( $aff_data = array(), $affiliate_id = 0 ) { |
NewerOlder