Title: joshjohnson's Replies | WordPress.org

---

# joshjohnson

  [  ](https://wordpress.org/support/users/joshjohnson/)

 *   [Profile](https://wordpress.org/support/users/joshjohnson/)
 *   [Topics Started](https://wordpress.org/support/users/joshjohnson/topics/)
 *   [Replies Created](https://wordpress.org/support/users/joshjohnson/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/joshjohnson/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/joshjohnson/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/joshjohnson/engagements/)
 *   [Favorites](https://wordpress.org/support/users/joshjohnson/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Require user login to view other content](https://wordpress.org/support/topic/require-user-login-to-view-other-content/)
 *  Thread Starter [joshjohnson](https://wordpress.org/support/users/joshjohnson/)
 * (@joshjohnson)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/require-user-login-to-view-other-content/#post-322641)
 * The “Hide portion(s) of post text” would work but this is a static page, so I
   dont “think” that it would work. I wouldn’t mind editing the php. I guess what
   I am looking for is actually written in the wp-comments-post.php as:
 * // If the user is logged in
    get_currentuserinfo(); if ( $user_ID ) : $comment_author
   = $wpdb->escape($user_identity); $comment_author_email = $wpdb->escape($user_email);
   $comment_author_url = $wpdb->escape($user_url); else : if ( get_option(‘comment_registration’))
   die( __(‘Sorry, you must be logged in to post a comment.’) ); endif;
 * I just need to figure out how to edit this and include it in my webcam.php static
   page.

Viewing 1 replies (of 1 total)