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?
- What are the package and subpackage comment for?
- Experiences with adding Nonces to the comment form
- Disable saving comment details (name, e-mail) in cookie?
- User-Specific Timezones? Hack? Plugin?
- 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?
- Notify commenters about new replies
- How to create custom LOGIN and REGISTRATION forms?
- 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?
- 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?
- How to add a privacy-checkbox in comment-template?
- Plugin: How should I handle deleting comments?
- Akismet plugin is deleting spam despite preferences
- Upload files programmatically to users
- Override comments.php template with plugin
- Current user in plugin returns NULL
- Leveraging WordPress Comments on Custom Plugin Object page
- Display comments of users on single page
- Function to prevent users from trashing comments
- Two people sharing user in WordPress [closed]
- How to upload user profile image from frontend in wordpress ?
- How do you override the default comment template?
- Average Account Age
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- How to get current post user id
- WordPress Central User Database
- How to read individual user’s directory and display content to that specific user?
- Send reply with pre-prepared answers
- How to create restrict content to users (by user, not by role)
- Disqus deleted comments are syncing with wordpress but active comments do not
- How can I change the meta_key for a particular piece of information?
- Notify comment author upon reply
- allow photo/video in comments
- Is there a specific term for Plugins that are specified in a WordPress Post using Comments?
- Multisite – maximum number of users with specific role
- How to have sample page for each new register users in a membership website
- Flag Comment as inappropriate button plugin
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- Add User Role: Pre-saved in User-Meta [SOLVED]
- get_comments_number() giving wrong results! What are alternatives?
- How limit user connection?
- How to pass a query string to another page on the same site?
- Remove specific administrator’s capability
- Personalized Author Area
- Error: Can´t access facebook comment plugin admin page
- How to auto strip hyperlinks & images in wordpress post
- Creating teams of users in WordPress
- Plugin privelages for “editors”
- Shortcode not displaying HTML within the function
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Disable Author Archive just for certain roles in bulk
- Why the internal link get converted into a comment?
- Can we hide a certain user in WP?
- How to implement data residency in my WordPress site
- how to create user profile pages and display them based on users roles
- After reading 3 story by user ask for subscription popup
- User updating their profile wipes my custom fields
- Disqus comment system not show
- How do I run my custom function in my plugin when a wordpress user is deleted?
- How to fix slow comment query?
- User / membership Plugin [closed]
- Custom User Notice Upon Login
- How can I save cookies to members
- How to order users alphabetically by name? in plugin UPME
- 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?
- Convert usernames listed by the Groups plugin shortcode to displayed names?
- Displaying custom profile fields using Mingle Plugin
- Want to add post to user dashboard
- Getting Post Permalink Outside of Loop Not Working
- which is this plugin ? [closed]
- WordPress User Portal
- Questions about using Disqus or Jetpack for comments [closed]
- 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
- What forum plugin can I use to allow non-registered users to create posts and comment? [closed]