• Resolved Anonymous User 17335794

    (@anonymized-17335794)


    Hello,

    From all users page I can see wallet fund option. When I click the button redirect to user wallet history page. But I want to redirect to fund edit page.

Viewing 1 replies (of 1 total)
  • Plugin Author Subrata Mal

    (@subratamal)

    @anish12345 Please use the attached code in theme functions.php file to redirect to user wallet edit page.

    add_filter( 'manage_users_custom_column', 'manage_users_custom_column_callback', 100, 3 );
    if ( ! function_exists( 'manage_users_custom_column_callback' ) ) {
    	function manage_users_custom_column_callback( $value, $column_name, $user_id ) {
    		if ( 'current_wallet_balance' === $column_name ) {
    			return sprintf( '<a href="%s" title="%s">%s</a>', admin_url( '?page=woo-wallet-add&user_id=' . $user_id ), __( 'View details', 'woo-wallet' ), woo_wallet()->wallet->get_wallet_balance( $user_id ) );
    		}
    		return $value;
    	}
    }
Viewing 1 replies (of 1 total)

The topic ‘Fund edit’ is closed to new replies.