• Resolved marijnstenvert

    (@marijnstenvert)


    Hi there, the users on our website come from different businesses. We would like to add a field to the user-settings in which we specify from which business the user is from. Herefor I added the plug-in Profile Extra Fields by BestWebSoft. Is there a possibility to show this extra information in WP-Statistics? So we can the statistics of every individual business.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mostafa Soufi

    (@mostafas1990)

    Hey,

    Good point! I’ve added an action after the user where you can show anything you want https://github.com/wp-statistics/wp-statistics/commit/c56466c1a6a3668ddb824cb90890ac414193105b?diff=unified

    Example of action:

    add_action('wp_statistics_after_user_column', function ($arg) {
        if (isset($arg['user']['ID']) && $arg['user']['ID']) {
            echo sprintf('<p>%s</p>', get_user_meta($arg['user']['ID'], 'admin_color', true));
        }
    });
    Thread Starter marijnstenvert

    (@marijnstenvert)

    Hi Mostafa, thank you for the help. There’s 1 problem with the code though. The extra information is added in the same column as the username. That means I can’t filter with the extra information. Is it possible to add the extra information as a independent colomn? And it would be great if we can export all the information about visitors to Excel. At the moment it’s not really possible to read the data.

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Right now, the tables can’t be changed because it’s set up in a fixed way. But we’re looking to make it more flexible in the future.

    Best

    Thread Starter marijnstenvert

    (@marijnstenvert)

    Ok thanks. We’re looking forward to the new features.

    Plugin Author Mostafa Soufi

    (@mostafas1990)

    Your welcome ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Feature request: add and show extra field’ is closed to new replies.