I am a newer of PHP language,I have a project of user system,that need each user has each different content,I place the content to a page,when user login,open this page will display that content.To do that,I think may have these steps:

  1. Get data from database for each user,like register date
  2. There is already a page exist, no content.
  3. Assign these data to a login user,set the data read from database to a page, display in that page Or update content to this empty page, so the user can see the new content.

Is that a plugin or several plugin can do that? I found an example from WordPress help:

    // Update post 37
  $my_post = array(
      'ID'           => 37,
      'post_title'   => 'This is the post title.',
      'post_content' => 'This is the updated content.',

// Update the post into the database
  wp_update_post( $my_post );

It seems can update content by program, but where shall I put this code?(I am newer,sorry)

1 Answer 1


WP-Members™ is a free membership management framework for WordPress® that restricts content to registered users.

For reference please have a look

  • Thanks,do you know how to update the content with that code?
    – momo
    Commented May 12, 2016 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.