How to add custom detail page for a Subscriber at Admin Panel

It sounds like maybe you need to add a settings page, (https://developer.wordpress.org/plugins/settings/custom-settings-page/) This would be good if you had something really custom (customer user meta) and a layout that you wanted to keep separate from the regular user pages. Otherwise, why not just link to the core wordpress user pages? Just build your links like … Read more

How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount

Background Gating unauthenticated end-user’s ability to view site content based on the activity of such users is a difficult problem to solve reliably, owed to the design of web technologies as a whole. To the best of my knowledge, WordPress core provides no features which require any such functionality, and so there are no core … Read more

How to display Most Recently Read 10 Posts by a logged in user in wordpress

At first you need to set a meta value when a post is visited using this way if( is_user_logged_in() ) { update_post_meta( $post_id, ‘post_readed_by’, get_current_user_id() ); } Then you can get the recent visited posts <?php $args = array( ‘posts_per_page’ => 10, ‘meta_key’ => ‘post_readed_by’, ‘meta_value’ => get_current_user_id(), ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ); … Read more

Why does a super admin on multi site get a rest_user_invalid_id error code when requesting user details through REST?

Deleting users with the REST API isn’t supported for multisite, as seen in the source code: // We don’t support delete requests in multisite. if ( is_multisite() ) { return new WP_Error( ‘rest_cannot_delete’, __( ‘The user cannot be deleted.’ ), array( ‘status’ => 501 ) ); } For GET requests the user ID is checked … Read more

How do you disable the verification process of user email changes?

As mentioned in the ticket #16470 this confirmation feature: prevents accidental or erroneous email address changes from potentially locking users out of their account. so it’s good to keep that in mind before removing this feature. Here’s a little proof of concept for (single site) test installs. We still want to run send_confirmation_on_profile_email() because it … Read more

User submitted post

You can create your form, submit it to PHP_SELF, sanatize your data and finally run your data through wp_insert_post() Function. You should be able to research everything else to achieve what you’re looking for but this will get you started. Good luck!

How to get user contact info

It sounds like you’re after the get_userdata() function. As a basic example, you could retrieve a users email like this: <?php if ( $user_id ) { $user = get_userdata($user_id); echo ‘Users Email is: ‘ . $user->user_email; } ?>