Support » Plugin: WP-Members Membership Plugin » Export Users Taxonomy

  • I have created a custom user taxonomy called Clubs, I was wondering if there is a hook I can use to include this taxonomy in the Export All Users function?

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    You could potentially use the wpmem_export_fields filter to add it as a custom column in the output. You’d use that to identify the meta key and column display name. Then for the actual user data, you’d filter wpmem_user_export_row. wpmem_user_export_row passes an array that is keyed by the field meta keys. So that’s where you’d add your specific data for each user. (The first array item is the user ID, keyed as “ID”.)

    Both of those lack an example on the plugin’s support site, but the filters are documented inline (which is where they would make the most sense anyway, as you can see how the data is assembled). They’re in /includes/admin/class-wp-members-export.php

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.