How does a WooCommerce site integrate with the existing real world customer members?
How does a WooCommerce site integrate with the existing real world customer members?
How does a WooCommerce site integrate with the existing real world customer members?
Members only function, but allow account activation [solved]
Might you need one of these Admin capabilities? delete_others_pages delete_others_posts delete_pages delete_plugins delete_posts delete_private_pages delete_private_posts delete_published_pages delete_published_posts Unless you’ve modified the default capabilities for Administrator, to remove one or more of these capabilities, you should be able to delete any Post (of any Post-Type) as an Admin user.
Fields added by S2Member are probably stored in wp_usermeta, while BP’s member search searches over data stored in BP’s xprofile tables. Probably the most straightforward fix is to use a BP profile field for your ‘company’ data. If you’ve already got member data in there, you’d have to write a script that moves (or copies) … Read more
Try this function bp_is_members_component().
So here is the small snippet to show total number of users and all roles with user count. This code should go in the themes functions.php file. The code uses count_user function to fetch the array and show it up on Right Now dashboard screen. function wpse_60487_custom_right_now() { $users = count_users(); echo ‘<table><tbody>’; echo ‘<tr><td … Read more
Off the top of my head… I can think of a plugin that does this: http://buddypress.org/community/groups/bp-profile-search/ Perhaps this will provide you with a good starting point for what you’re trying to get done.
I don’t think what you want is URL rewriting. If I understand correctly, what you want is to restrict access to certain pages, posts, categories, etc., based on the current user’s role or capabilities: “If logged in, do something. If not, do something else (like prompt to login or register).” Modifying the output/behavior of a … Read more
I would say plugins are very easy way to handle membership until unless you want it for a small scale like for few pages/posts etc. In that case you can register the level of users as per your requirements, assign capabilities and then on each page/post you can check if ( current_user_can() ) This can … Read more
You can use get_current_user_id() – if a user is not logged in, the value will be 0: <a href=”http://example.com/uid=<?php echo get_current_user_id() ?>”>…</a>