10

According WP database structure, ID in wp_users is Bigint(20) UNSIGNED, so you could "theoretically" add 18446744073709551615 users. http://dev.mysql.com/doc/refman/4.1/en/integer-types.html


10

Add this to your child themes functions file using a code editor like Notepad++. You will need to change the page I.D's in the code to your own. Exclude Specific Pages From Search Results add_filter( 'pre_get_posts', 'exclude_pages_search_when_logged_in' ); function exclude_pages_search_when_logged_in($query) { if ( $query->is_search && ...


6

A bit late to answer this, but since its coming up for relevant search, this will be of use to somebody : WordPress uses EAV database schema for part of its database implementation. This affects both the data, and users. (They are kept in separate tables) To explain it from data angle: Along with the directly accessible post related details in wp_posts, ...


5

I've found the bottle neck for how many Wordpress users you can have is the PHP timeout coming into play on the users admin page. Assuming all your users have at least 1 role they have a wp_capabilities entry in the user_metadata table with a serialized array of roles. The admin page shows a count of how many users with each type of role there are so it ...


5

I think you can run even more users. The only thing that can limit you is your server. You'll have to scale it properly, especially MySQL server. For example wordpress.com runs even more then 40000 users, but they use extra powerful systems for stability, tons of load balancers and etc.


4

The question should be how many users can php-mysql stack handle instead of WordPress as WP is developed on those 2 principal technologies. Being said that, if you can configure server with advanced server techniques, host WP in a good managed server, optimized database load and queries then WP can handle as many members as you want. If you install ...


4

I've run your code and it works fine to me except for the inclusion in file-access.php: require_once($_SERVER['DOCUMENT_ROOT'].'/wp-load.php'); enable debug to see if there are errors depending on other issues and not regarding these specific code lines. But.. as per WP documentation: actions reference the earlier action hook where the authentication ...


3

I would flag post as member_post when it is submitted to database and use this flag to sort them. function wpse_287048_flag_member_post( $post_id ) { if ( wc_memberships_get_user_active_memberships() !== false ) { // Check if user is member update_post_meta( $post_id, 'member_post', 1 ); } else { update_post_meta( $post_id, '...


3

A "secret" full text feed Here's a demo plugin that gives you a full text feed at: example.tld/secretfeed/ Just remember to flush the rewrite rules, e.g. by visiting the Settings/Permalinks page: <?php /** * Plugin Name: Secret Full Text Feed * Plugin URI: http://wordpress.stackexchange.com/a/208724/26350 */ add_action( 'init', function() { ...


3

Unless I'm misunderstanding you, WC Subscriptions already has this functionality. Firstly, set your subscription product to be variable or grouped, rather than having multiple individual products. Set the subscription product to limit purchasing: https://docs.woocommerce.com/document/subscriptions/store-manager-guide/#limit-subscription Then turn on ...


3

You can do it without plugins, you just have to allow subscribers to see Private posts and pages, depending on what you want, so you have to put this code in your functions.php $subRole = get_role( 'subscriber' ); $subRole->add_cap( 'read_private_posts' ); $subRole->add_cap( 'read_private_pages' ); And then simply create a private post or page and it ...


2

We had a similar problem where we needed to give access to partners and "membership" or "subscription" plugins seemed to offer what we needed. The problem we had was that the plugins we found were all for-pay, not free or freemium. Understanding this, the MagicMembers and aMember Pro plugins both had functions that could prevent access sharing. I'm sure ...


2

All of this can be done with code of course but since you say, "The first part (check if the user is registered / subscribed) is the difficult one for me." ...then your time will be better spent going directly to plugins that allow for similar functionality as described in your question. The first recommendation, WishList Member [premium only] This is ...


2

Maybe I've misunderstood something, but I'm pretty sure WordPress can do this without any plugins. Just set User A as Author, and User B as Editor or Administrator. PS. See Capability vs Role Table: http://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table


2

Figured this out after finding this page: http://www.0to5blog.com/tips/protecting-wordpress-media-uploads-unless-user-is-logged-in/ That page contains the instructions I was looking for, exactly! I tweaked the dl-file.php code slightly to meet my needs: if ( !current_user_can( 'read_private_posts' ) || !is_user_logged_in() ) {


2

You probably want pmpro_getMembershipLevelsForUser from functions.php: /* pmpro_getMembershipLevelsForUser() returns the membership levels for a user * * If $user_id is omitted, the value will be retrieved from $current_user. * By default it only includes active memberships. * * Return values: * Success returns an array of level objects. * ...


2

Source: Chris Lima - Managing a High Performance WordPress Membership Site I should look at caching plugins because it makes things faster, better and worked for you. The problem with that answer is that most caching plugins don’t do much for logged in users. Most sites have is that non-logged in users should get pre-cached pages that load super fast, and ...


2

The closest in my experience was probably working with customizable digital WooComerce products. Users edited the product on site and then purchased the customized version. From technical point of view my implementation did the following: Stored ongoing (before purchase) customizations in user meta On order paid detached customizations from user and ...


2

Your answer is on the codex page link in your question. // Get the member type of user 5412. $member_type = bp_get_member_type( 5412 ); So you could do something like this: $member_type = bp_get_member_type( get_current_user_id() ); if ( $member_type == 'dog' ) echo 'Bark';


2

There is an error in your echo. You are trying to echo a php opening tag. change your function to: function insert_acf() { echo "<p><div id='content-creator'>Test</div></p><p>" . get_field('organisation_name') . "</p>"; }; This will solve your first problem.


2

Try this: function insert_acf() { $rtfield = "<p><div id='content-creator'>Test</div></p> <p>". get_field('organisation_name')."</p>"; return $rtfield; }; add_action('pmpro_checkout_before_submit_button','insert_acf'); Now in your dashboard you need to add that field to your user form by going to custom ...


2

No, you don't need to do anything. You can test this by logging in from your own PC and also logging in from another PC or mobile device using the same, or a different Internet connection.


2

I can confirm that the values are saved in the User meta table as I have been working on the same exact thing. meta_key contains the name of the input (case sensitive) and meta_value the actual value. User-ID is also a column, so, theoretically, you can get all the values for a certain user. I'm still working on this query so I can get the data for each user ...


2

The PMPro team made a plugin to do this: https://wordpress.org/plugins/hide-admin-bar-from-non-admins/ The includes the PHP and CSS code needed to fully hide the admin bar: https://plugins.svn.wordpress.org/hide-admin-bar-from-non-admins/trunk/hide-admin-bar-from-non-admins.php function habfna_hide_admin_bar_settings() { ?> <style type="text/css"&...


1

Even if you're skilled in "complex PHP websites" it's safer to go with something that's already built. If you code it yourself you're very likely to overlook security issues and you'd have to constantly be updating it. It's worth investing a bit of money in plugins up front (if necessary; you may well do fine with free plugins, just do lots of research up ...


1

I don't think "they" like plugin recommendations here. Have you tried searching the WP Plugin Repository and reading the reviews and descriptions. There's some great simple ones out there.


1

Sorry for the obvious answer, but why not use the users membership number as their username? Then all you need to do is change the wording on the login page. Good luck David


1

My mistake. I had Absolute Privacy plugin turned on and that was interfering.


1

The basis for making this work is actually pretty simple. Essentially, you just need to hook pre_get_posts and set the author query var to the value of the currently logged in user for each type of query you want to limit results on. function logged_in_user_posts( $query ){ if ( is_user_logged_in() ){ global $current_user; ...


1

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 be a solution to manage to a small scale of things. A ...


Only top voted, non community-wiki answers of a minimum length are eligible