The last two hooks should specify 2 accepted arguments, not 1;
add_action('comment_approved_','ymc_subscription_add', 10, 2);
add_action('comment_post', 'ymc_subscription_add', 60, 2);
Related Posts:
- Same email for all comments
- Subscribe to a post’s comments without posting a comment yourself
- How to change the email notification recipient (user) for new comments?
- If new comment posted in custom post – send notification to custom email from custom field
- Disable Admin account being emailed for comment notification
- WordPress comments email notification for authors
- Send Notifications to All Admins
- wp_insert_comment error. puzzled by date value
- Reject Comments Based on Author Email
- Reply By Email to comment notifications
- comment reply by email
- How can I get list of emails of users who commented on a post?
- Woocommerce comments subscription [closed]
- How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?
- I can’t post comment via REST API
- Sent comments notifications to multiple users
- How to get Post title by locale with Qtranslate-X
- How to create post comment from different domain
- How to use filter on comment submission/insert
- How to prevent users/authors from seing IP/email of new commentators?
- Not receiving any e-mails after new comment
- Comment notification not working
- Change Comment Author Display Name
- comments reply script not working
- What should I do to make generated avatars different for anonymous comments?
- How do I set up real anonymous posting in bbpress forums? [closed]
- How do I turn off wordpress comments ability to capture a users ip address?
- Success message in comment form
- How to remove commenters ability to add hyperlinks to comments?
- Exclude internal links from comment moderation?
- Change the HTML output of comments
- Can’t add default comments to custom post type
- Upload images with comment
- Change language of comments template
- Multiple Comment Forms in a single page [closed]
- Why Allow Script Commands in Comments?
- How to enable comments options?
- WordPress comment count to include attachment comments
- How to no follow the paginated comments
- Remove “Comments are closed” Notice from Custom Post Type template
- Comment count wrong with orphaned comments
- Get comment content by comment ID
- Pings and replies
- Retrieve comments from current post using SQL
- Comment_Reply_Link Not Showing?
- Display recent comments with gravatar and excerpts?
- Is comment metadata included in the export file?
- Display the number of unseen comments on a page since the user last visit
- Log in link not showing, Comment Issue
- Removing the limit on the number of nested comments
- How to call my custom WordPress Comment form without getting the comments?
- How to moderate (manually approve) comments of a specific (registered) User
- How to limit comment author to one comment per post
- Make WordPress process admin group comments using $allowedtags
- How to disable comment flood temporarily in a single scope
- How to create a seperate commenting system?
- Change how many approved comments must user have
- Only admin can see comments on post or page
- Count comment threads, not total comments in a post
- Display Custom comments field number
- Get all child comments ids from parent comment id
- Trying to post a wordpress comment on my site redirects to 127.0.0.1
- How can get comment link by comment id?
- How to amend time format of comments, using child-theme?
- Make user’s name display as the site name in comments if it matches certain roles
- Display avatar with comment form?
- Adding SQL source code to comments
- How to control size of comments popup window?
- I update a post and it creates a pingback? Any idea why?
- assumed as comment line
- How / where is the wp_query object created for RSS feeds?
- Separate page for comments using permalinks and add_rewrite_rule
- Return count for characters in the comment and perform action based on the length
- How to load new posts from wordpress db into wordpress homepage without refreshing the site?
- Cannot Remove Title Reply from Custom Comment Template for Signup Page
- comments.php remove date/time’s #hyperlink
- comment just attachment .. reply just text … can I do that?
- How to make email field not required in comments?
- Email content as comment
- I want to limit registered user to 1 comment per post in WordPress
- edit comments in front end
- What is wrong with this? [closed]
- Comment moderation
- I have tried using Plugins to remove 72K comments with no success
- How to get the 5 most recent comments and each comment 5 most recent replies (children)
- Comment text area in single blog post and show comments if approved
- comment files and s
- How to ‘If Author’ Comments Check
- selectively disable akismet
- Disqus moderation page not working in WordPress admin section
- Comment Blacklist
- Comment forum to display under the comment you’re replying too
- Recent comments per tagged post?
- Modify “Recent Comments” List in WP-Admin
- Comment submission & navigation redirects to default language
- How to hide the login / profile urls on top of comment box for a post
- wp_list_comments adds unnecessary elements
- comment awaiting moderation
- How do you fetch the authors email or IP from /comments? (REST API)
- WordPress Editor widgets “comments” and “post comments form” getting disappeared with elementor [closed]