Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have same issue.
    If you can tell us where the Mycred “mref” script is in the super socializer, I’m sure we can do some changes to make it work.

    The script below works for jetpack share buttons but I’m using Super Socializer Share buttons.

    Your recommendation is highly required and appreciated.

    add_filter( ‘sharing_permalink’, ‘mycred_pro_insert_ref_in_jetpack_share’ );
    function mycred_pro_insert_ref_in_jetpack_share( $url ) {

    // Cant do anything for visitors
    if ( ! is_user_logged_in() ) return $url;

    // Get users ref ID (if using numeric IDs)
    $ref_id = get_user_meta( get_current_user_id(), ‘mycred_affiliate_link’, true );
    if ( $ref_id == ” ) return $url;

    // Get users ref ID (is using username)
    //$user = wp_get_current_user();
    //$ref_id = urlencode( $user->user_login );

    return add_query_arg( array( ‘mref’ => $ref_id ), $url );

    }

    //END OF SCRIPT

    #THANKS

    Hi @creaweb2b . Thanks for This Code: add_filter(‘woo_wallet_disable_partial_payment’, ‘__return_true’);

    It worked for me but I had to Modify it first by changing ‘ to ‘ as seen below.

    add_filter(‘woo_wallet_disable_partial_payment’, ‘__return_true’);

Viewing 2 replies - 1 through 2 (of 2 total)