Open jeherve opened 10 years ago
requested in 754461-zen
921071-zen
938726-zen
1094364-zen
https://wordpress.org/support/topic/how-to-manage-notify-me-of-follow-up-comments-by-email-for-custom-post-type/ @erania-pinnera and @tmmbecker
Please provide a options for post type selection where you have need Notify me of follow-up comments by email
\jetpack\modules\subscriptions.php line no 616
if ( FALSE === has_filter( 'comment_form', 'show_subscription_checkbox' ) && 1 == get_option( 'stc_enabled', 1 ) && empty( $post->post_password ) && 'post' == get_post_type() ) {
There have not any filter function for change the code. Can we apply on custom post type?
There have not any filter function for change the code. Can we apply on custom post type?
Adding a filter here or changing the code in the plugin won't help I'm afraid. We would need to add support for Custom Post Types on WordPress.com first, where the emails are generated and sent.
We will update this issue once we make progress on this.
Requested in 1388180-zen
Requested in 1677630-zen
After 4.5 years since the original issue, it is quite disappointing that Jetpack still can't send notification on CPTs - not even a post title and link.
Is there a way to make a CPT pretend to be a regular post for Jetpack?
Is there a way to make a CPT pretend to be a regular post for Jetpack?
I am afraid not, that is not really possible right now. Since the posts are sent from the WordPress.com servers, you can't really "trick" the posts to send out emails.
We'll post on this issue as soon as we start working on Subscriptions again and can pick this up.
And that is? Maybe for the year 2030? :(
And that is? Maybe for the year 2030? :(
We don't have any estimate as this is not on our roadmap right now. We'll post here when that changes.
Requested in 1905752-zen.
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
Still a request.
Yes, still a request, after all these years. Would be nice to know it has been addressed : (
Hello, I would like to request this feature as well.
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
VIP client request in 109953-zd-wordpressvip.
We had a user who was asking after this in 3535140-zen as well today.
It is 2021 and this is still an issue.
If only there was a way we could tie this issue to something that Gutenberg needs... it would've been resolved within the hour.
@jeherve who would be the best person to lobby for getting this onto the roadmap? What would be the best method for contacting that person?
@Kevin-Hamilton You're in the right place! This is where we track and monitor bugs as well as feature requests for Jetpack.
We're not currently working on the Subscriptions feature, hence why this issue has remained opened for so long without any updates. When we do start iterating on the Subscriptions feature again, we'll look at feature requests just like this one to help us prioritize.
As my colleague mentioned above when we first discussed this feature, Custom Post Types in WordPress often rely on a custom content structure. When defining a new post type, and as you most likely know, one can choose whether they want to use post titles or not. They may also decide to rely on custom taxonomies or custom post meta instead of storing the main content in the post content area. This does make things a bit more difficult, as we would have to make assumptions that may not be correct when building the title and body of the email that needs to be sent.
In any case, until we start working on this, I can only recommend that you turn towards a different plugin to handle email subscriptions for Custom Post Types. MailPoet, for example, supports Custom Post Types. While it doesn't work exactly like Jetpack's Subscriptions feature, it may fit your needs.
@jeherve
When defining a new post type, and as you most likely know, one can choose whether they want to use post titles or not. They may also decide to rely on custom taxonomies or custom post meta instead of storing the main content in the post content area. This does make things a bit more difficult, as we would have to make assumptions that may not be correct when building the title and body of the email that needs to be sent.
Wouldn't all of the above be remedied by filters and actions? I mean, all you guys have to do is work with the post title and post content as usual, then provide appropriate hooks to alter these pieces of info.
Hooks are what makes WordPress so powerful, and this is a WordPress plugin.
@w33zy That certainly would be an option, although it would be a departure from the way Subscriptions work today; the feature doesn't require any configuration, it works out of the box.
...it would be a departure from the way Subscriptions work today; the feature doesn't require any configuration, it works out of the box.
@jeherve
You've either missed my point entirely (or you are deliberately dodging it). I specifically referenced using a hook (filter) to solve this issue. How would adding a filter affect the way the subscription module currently works?
Isn't the idea behind WordPress hooks to provide customization to 1% of WP users who are comfortable enough with PHP to write custom code, while allowing the 99% to use WordPress as it was designed?
Are there not any filters in the entirety of Jetpack's codebase?
Sorry, I should have been clearer. Let me try to rephrase.
Today, the Subscriptions feature doesn't require any kind of configuration; you can toggle the feature on and newly published posts will be sent to your subscribers. Ideally, if one wanted to enable subscription emails for Custom Post Types on their site, the default behaviour would be the same as for Posts. They would enable a toggle for that post type and wouldn't have to do anything else; it would "just work".
For the reasons we've discussed above, that's not an option right now.
Offering the option to enable subscriptions for CPTs via a hook would be an alternative to a full-fledged UI, as you suggested. A simple filter in the plugin wouldn't be enough, as discussed in earlier comments on this issue, but with changes on WordPress.com (where content is processed and where the emails are being sent), it could be possible.
However, it would make that CPT option only available to subset of Jetpack site owners. As you mentioned, this would only be available to people comfortable enough with PHP to write custom code. That's where it would be a departure from the way the Subscriptions works today.
In any case, pushing out emails from Custom Post Types is something we'll consider when we next iterate on the Subscriptions feature. We'll update this issue when we make progress on this.
I hope this clarifies things a bit.
Is there any news on this already? It's a pity not to be able to use the subscriptions at CPT, even if they correspond to "normal" posts. CPT are generally very poorly supported, until today they are not usable in the wordpress app. CPT are an important tool in wordpress.
This issue has been marked as stale. This happened because:
No further action is needed. But it's worth checking if this ticket has clear reproduction steps and it is still reproducible. Feel free to close this issue if you think it's not valid anymore — if you do, please add a brief explanation.
Would love to have the ability for users to subscribe to comments on Pages, thanks.
Requested in 6039181-zen
Support References
This comment is automatically generated. Please do not edit it.
Currently, the subscriptions module will only notify subscribers when a new post is made on the blog.
Since WP 3.0, CPTs (custom-post-types) have started playing an increasingly dominant role in many blogs. Therefore, I believe it would be a great addition to Jetpack to add the option for blog admins to select which post types will be included in these updates.
Original trac ticket: