settings->get( 'checkout_referrals_checkout_text', __( 'Who should be awarded commission for this purchase?', 'affiliatewp-checkout-referrals' ) ); } /** * Get the affiliate display option. * Provides a default for when the settings have not yet been saved. * * @since 1.0.4 * * @return string display setting */ function affwp_cr_affiliate_display() { return affiliate_wp()->settings->get( 'checkout_referrals_affiliate_display', 'user_nicename' ); } /** * Whether or not the affiliats must be entered/selected * Provides a default for when the settings have not yet been saved. * * @since 1.0.4 * * @return bool false */ function affwp_cr_require_affiliate() { return affiliate_wp()->settings->get( 'checkout_referrals_require_affiliate', false ); }