The comments_open() boolean function return is filtered by ‘comments_open’. Untested, pseudo code as a guide:
add_filter( 'comments_open', function( $open ) {
$user = wp_get_current_user();
$open = $open && $user && time() - mysql2date( 'U', $user->user_registered ) > 3 * DAY_IN_SECONDS;
return $open;
} );
No guest users will be able to comment either, and I guess that is also what you want.
Related Posts:
- How to see in Edit Comments if comment is from User and her Roles
- Override WordPress user with Oauth2 account
- How to export comments in WordPress?
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- What are the package and subpackage comment for?
- WP_User_Query and non-unique usermeta data
- Experiences with adding Nonces to the comment form
- Is there a plugin for posting inline comments, like in MS Word? [closed]
- Where the Nickname is being used in WordPress
- Keep one user logged for a year?
- Disable saving comment details (name, e-mail) in cookie?
- User-Specific Timezones? Hack? Plugin?
- Facebook comments box on front page
- Loading posts associated only to the logged in user on recent posts page
- Disabling Comment Notifications for Post Author
- How can i force Display names to be the same as Usernames?
- Are there any drawbacks to install IntenseDebate on my blog?
- Installing Facebook comment plug in without loosing all previous wordpress comments?
- Notify commenters about new replies
- How to create custom LOGIN and REGISTRATION forms?
- Custom comment type maybe?
- Use comments as notes, visible for comment author only
- Removing user contact methods works from functions.php but not from a plugin
- Don’t send notification if author comments his own post plugin help?
- How can I let users to access plugin functions based on roles?
- $current_user var returns NULL
- Multisite functions to communicate with individual site functions
- Get User ID from within a plugin
- Is it possible to block subscriber users to changing its password?
- delete_user_meta Delete one value out of array
- How does WooCommerce display a custom comment_type in Comment Admin?
- How to prevent spam comments?
- WordPress Plugin for One-Time Event Registration? [closed]
- Intercept comment form submit/list by hook/filter
- Will WordPress username displayed somewhere in the site?
- adding a text message beside the comment submit button
- How to add a privacy-checkbox in comment-template?
- Removing WordPress Plugin Menu Item for a specific user
- Plugin: How should I handle deleting comments?
- Akismet plugin is deleting spam despite preferences
- Upload files programmatically to users
- Plugin Functionality Only for Editor and Administrator
- How to expire all wordpress user passwords instantly?
- How to show popup to a group of users?
- Mass Import Users without sending new user notification
- Override comments.php template with plugin
- Current user in plugin returns NULL
- Leveraging WordPress Comments on Custom Plugin Object page
- Get total number of comment of the posts written by an author
- How can I store user preferences in WordPress and retreive them later?
- Simulate Update User button click
- Update User Meta Via Ajax
- User Following System
- How to fix slow comment query?
- User / membership Plugin [closed]
- Custom User Notice Upon Login
- AddThis Plugin adding html comments in P tags
- How to show a message to a user?
- How can I save cookies to members
- Disqus comments count taking long to update
- Paid Memberships Pro, Display User Limit
- Confusing problem with displaying message recipient metadata
- Every time I use wp_get_current_user() my plugin breaks
- How to order users alphabetically by name? in plugin UPME
- Paginated Comments “reply” does not work!
- Users Ultra: Hide asterisk for required registration fields?
- Defined user role to access plugin’s pages
- Creating a comments voting system
- Jetpack Comments Change Placeholder Text
- page creator to leave comments ONLY
- How change menu for each user in plugin?
- How to set different users for different pages?
- Why links are not linked if edited comment?
- Convert usernames listed by the Groups plugin shortcode to displayed names?
- Displaying custom profile fields using Mingle Plugin
- How to fix vanilla comments extra iframe space
- Want to add post to user dashboard
- Getting Post Permalink Outside of Loop Not Working
- Reply form used in wordpress.com
- which is this plugin ? [closed]
- WordPress User Portal
- User register hook can’t access form request
- How to make wordpress backend mobile optimized.?
- Questions about using Disqus or Jetpack for comments [closed]
- How to give different user access to different people?
- how to embed a crop feature for cropping images uploaded by the user
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- How to Allow Users to Select Recipients In a WordPress Comment section?
- Share or sync user table data with another user table
- Transfer wordpress comments form on another post [closed]
- Issues with creating user profile for a subscriber, but with different profile page and functionalities
- Email notification when registred user clicks a link/visits page
- Is there a plugin or resource for custom implementation for OAUTH and regular user login?
- Change comments ordering by custom value
- Search results not finding in paginated pages just in visible rows
- custom user profiles like linktree fully customizable on the front end
- Why nested REPLY not working in WP Comments?
- WP Plugin: How to avoid db access for each comment?
- What forum plugin can I use to allow non-registered users to create posts and comment? [closed]
- Admin Page & User page