Created
August 6, 2014 14:59
-
-
Save ameeker/737d50da870095f22686 to your computer and use it in GitHub Desktop.
Export Restrict Content Pro Custom Fields with Export
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I managed to do this fairly easily by editing the “class-rcp-export-members.php” file. But it would be great if there was a hook there to add in my custom fields? | |
For reference for people, just add a column to the “csv_cols” function on line 35. | |
And then add your custom field to the “get_data” data array on line 71 like this: | |
‘telephone’ => get_user_meta($member->ID, ‘rcp_telephone’, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nearly perfect. I had to change the quote style on the function param:
‘telephone’ => get_user_meta($member->ID, 'rcp_telephone', true);
Thanks for sharing!