There are several ways in which you can make them do that.
The user profile page is the easiest place in which they can set their PayPal email address, just as any other profile settings. The feature is enabled by default and you need to take no action.
This method requires that authors have access to wp-admin, at least for profile editing. This is not always the case, so we also provide other ways.
The PRO version comes with several shortcodes for stats. It also ships a shortcode to display the
PayPal email address form in any public page of your choice. You just need to create a new page, enter
[ppc_user_paypal_email_settings] as text and publish it. Logged-in users visiting that page will see the apt field to enter and change their PayPal email address.
If your site runs on BuddyPress, you can use the BuddyPress addon not only to show authors their stats and their payment history, but their PayPal settings as well. In fact, the
Settings tab will provide users with the ability to enter and change their PayPal email address.
If you have a custom setup for user profiles, and for some reasons you would like to manage users PayPal emails on your own, you can do so through a little custom code. The code you should be using is something like:
global $ppcp_global_settings; get_user_option( $ppcp_global_settings['paypal_email'], $user_id ); update_user_option( $user_id, $ppcp_global_settings['paypal_email'], "email_value" );
Using WP functions and PPC PRO variables makes sure your implementation will work for sure, even in multisite and with future updates of the plugin, but if you need the specific wp_usermeta meta key, it’s
wp_ppcp_paypal_email. But hey, just don’t use it unless you really know what you are up to!