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?
- Where the Nickname is being used in WordPress
- 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?
- Notify commenters about new replies
- How to create custom LOGIN and REGISTRATION forms?
- 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?
- 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
- WordPress Plugin for One-Time Event Registration? [closed]
- 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
- How to expire all wordpress user passwords instantly?
- Mass Import Users without sending new user notification
- Current user in plugin returns NULL
- Leveraging WordPress Comments on Custom Plugin Object page
- Display comments of users on single page
- Two people sharing user in WordPress [closed]
- Getting user roles in plugin files
- Facebook plugin shows existing comments
- 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?
- Post Comments with Ajax in WordPress
- 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?
- How do I get the user ID of the user that was updated in WordPress?
- Understanding State in WordPress Multisites
- How to have sample page for each new register users in a membership website
- Add Content to Content()
- 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_users(); Is an Undefined Function When Used in Cron Job
- get_comments_number() giving wrong results! What are alternatives?
- Moving FB comments at the end of page
- How limit user connection?
- Custom Login page with custom redirects for each user?
- How to pass a query string to another page on the same site?
- Comment Approve – Add custom function when comment is approved
- Individual Comment Notification Setting For Post Author
- How to save comment name email url fields?
- WordPress /users/me endpoint request forbidden
- Mutliple users editing single document in wordspress
- Plugin permissions for Editor role
- Error: Can´t access facebook comment plugin admin page
- How to auto strip hyperlinks & images in wordpress post
- Role based permission edit for plugins
- Plugin privelages for “editors”
- Shortcode not displaying HTML within the function
- Janrain/Simple Modal under Redirected Domain
- Display WordPress comments before the plugins?
- Disable Author Archive just for certain roles in bulk
- Enable comments pagination only amp page
- Can we hide a certain user in WP?
- After reading 3 story by user ask for subscription popup
- How to remove WordPress Default Comment? not Facebook
- How To Export User’s Custom Fields in CSV or XLSX
- Disqus comment system not show
- Get all user meta_keys and then group users by matching values
- On button click, redirect users to registration page instead of another page
- Searchable Semi Random Number Generator on User Profiles
- How do I run my custom function in my plugin when a wordpress user is deleted?
- How can I store user preferences in WordPress and retreive them later?
- How to fix slow comment query?
- Custom User Notice Upon Login
- AddThis Plugin adding html comments in P tags
- How to show a message to a user?
- Disqus comments count taking long to update
- Paid Memberships Pro, Display User Limit
- Confusing problem with displaying message recipient metadata
- How to order users alphabetically by name? in plugin UPME
- Creating a comments voting system
- Jetpack Comments Change Placeholder Text
- How change menu for each user in plugin?
- 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
- Reply form used in wordpress.com
- WordPress User Portal
- Questions about using Disqus or Jetpack for comments [closed]
- Transfer wordpress comments form on another post [closed]
- Issues with creating user profile for a subscriber, but with different profile page and functionalities