Home Forums Plugins Store Exporter Support [Resolved] Export CSV by filter role

Welcome to our community support forums! We're here to help - but if you have an urgent request for a Pro Plugin, you will get a prioritised response through our Premium Support page.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40499
    Cédric
    Participant

    Hi,

    I would like to export CSV filtering customers by role. I have 5 roles in my database. I would like to export only 2. How to do that ?

    Thanks by advance for your answer.

    regards.

    #40582
    Cédric
    Participant

    I found this code :

    // Returns a list of WordPress User Roles
    function woo_ce_get_user_roles() {
    
    	global $wp_roles;
    
    	$user_roles = $wp_roles->roles;
    	return $user_roles;
    
    }

    How export only administrator role ?

    Thanks for your answer

    #40593
    Michael Visser
    Keymaster

    Hi Cédric, we use the woo_ce_get_user_roles() to populate our Filter Users by User Role dropdown in our Pro Plugin.

    http://www.visser.com.au/plugins/store-exporter-deluxe/

    Upgrading to the Pro Plugin will unlock this functionality, I’ve made a note to move this feature to the free Plugin too but this will happen when I have some free time from supporting our Pro community 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Export CSV by filter role’ is closed to new replies.