I haven't been able to either program or find a plugin that gives me the ability to include an 'unsubscribe' link in comment notification e-mails (Wordpress website).
The thing is everytime a new comment is posted on a post on my website, the author gets a notification via e-mail. I'd like a link in this e-mail that allows the author to unsubscribe from this mailing.
I know the complete comment notification function can be disabled in the WP backend, but it's more like a custom notification (yes/no) per post. Does anyone know of a plugin or function to write to make this work?
Thanks in advance.
As it is send by pluggable function, you can add a simple plugin (not theme) to override it. Code to be placed in plugin:
if ( !function_exists( 'wp_notify_postauthor' ) ) {
function wp_notify_postauthor () {}
}
Answer based on this tutorial
Related
I am using the Wordpress Hirebee theme from Appthemes.
Link to theme features: https://www.appthemes.com/themes/hirebee/
Link to theme demo: http://demos.appthemes.com/?theme=hirebee
The theme already has a messaging and notification system for freelancers and employers to communicate with each other. So I want to:
Make two buttons on profile. One button will be "Contact Me". It will send a normal message to the Freelancer.
Second button will be "Hire me" button. It will invite the freelancer to an open project already created by the employer/user. To use the Hire me button, employer/user have to create a project first, then look for freelancers and invite anyone they like from the profile. If no project is created when the the hire me button is clicked, it should show a popup message saying to create a project first with a link to Create a project page.
Both the above buttons should work along with the theme's existing notification system so users will get notifications for any messages or replies.
If someone used Hirebee theme please let me know how to do that.
Thanks in advance :)
We are currently trying to set up this same theme and that is a good question. I been waiting to see if anyone answers you.
Michelle
I need to create a couple of pages to subscribe and unsubscribe users to a newsletter service (I can't use any available plugin, its a custom newsletter service) so I need to create a page where to show the forms and manage the form submissions.
I'm not a wordpress expert so I don't know exactly how to i.e. make a page that reponds to /newsletter/subscribe|unsubscribe and display a form on it.
I've done some plugins in the past but none of them render a page responding to an URL or "capture" the POST.
I've done some investigations and it looks like adding this to the functions file of my template I can add rewrite rules:
function custom_rewrite_newsletters() {
add_rewrite_rule('^newsletter/subscribe/?', 'index.php?pagename=subscribe', 'top');
add_rewrite_rule('^newsletter/unsubscribe/?', 'index.php?pagename=unsubscribe', 'top');
}
add_action('init', 'custom_rewrite_newsletters');
The problems is I don't know where to create the subscribe and unsubscribe pages. I tried page-subscribe.php in the root of my theme but I get a 404
Thanks in advance
Paid Memberships Pro has a bunch of default email templates, that are triggered by different events to send to either a user/member or the admin, depending on the event (some events have two templates: one to the user, one to admin).
The plugin offers a slew of hooks and filters for customization convenience.
Here is the filters provided in the PMPro email class and its entire source on GitHub, and implementation here in the crons.
How might I be able to only change the email recipient for a particular template? And/or BCC the admin only for a particular template?
Any insight would be greatly appreciated, thanks.
By the way I am trying to achieve this in a separate plugin, you know, not edit the plugin itself, so I can keep it updated and such...
There are several ways to do this by using the hooks.
The first one that occurs to me is that you can use the pmpro_email_filter filter to modify the PMProEmail instance.
For example, the following piece of code would change the recipient email to "new_email#example.com" if the email template is "something":
add_filter('pmpro_email_filter', 'modify_email_recipient');
function modify_email_recipient($pm_pro_email) {
if ( $pm_pro_email->template == 'something' ) {
$pm_pro_email->email = 'new_email#example.com';
}
return $pm_pro_email;
}
I tried so many plugins in my word-press website and i didn't find the correct plugin what I'm looking for.
In my website i have category called TOOLS i want when the visitors clicks on tools it will
display the posts normally but, when the the user click Continue Reading or Read More he must
be a registered and an approved user so he can read posts in category tools i tried a plugin called register plus but never mind didn't work anyone can help
me with this problem?
Try this plugin, it seems that it will do the job: https://www.volcanicpixels.com/password-protect-wordpress-plugin/
You should add plugin custom plugin or somehow add user check when reading full post.
So what you need is to first check if user is on full post and if not logged redirect user to log in screen.
WP has functions just for that:
<?php if(is_single() ) auth_redirect(); ?>
Check out documentation for auth_redirect and for is_single().
How can I let the visitors publish a post without registration in wordpress ?
Any programming modifications suggestions ?
TDO Mini Forms will do what you what you want without too much programming, if any. Here's part of the description from the plugin page:
This plugin allows you to add highly customisable forms that work with your Wordpress Theme to your website that allows non-registered users and/or subscribers (also configurable) to submit and edit posts and pages. New posts are kept in "draft" until an admin can publish them (also configurable). Likewise edits can be kept be automatically kept as revisions until an admin approves them. It can optionally use Akismet to check if submissions and contributions are spam. TDO Mini Forms can be used to create "outside-the-box" uses for Wordpress, from Contact Managers, Ad Managers, Collaborate Image Sites, Submit Links, etc.
Correct me if I'm wrong, but I think the standard WordPress settings will allow you to open up the comments. Assuming you're using at least version 2.8, go to Dashboard > Settings > Discussion. Here you'll find the standard options, try this combo ('yes' and 'no' indicate if the boxes are checked):
Other comment settings:
no - Users must be registered and logged in to comment
Before a comment appears:
yes - An administrator must always approve the comment
no - Comment author must have a previously approved comment
Try this on for size ;-)
WordPress does have a 'post by email' feature:
WordPress can be configured to use
e-mail to post to a blog. To enable
this functionality, you need to:
Create a dedicated e-mail account to be used solely for posting
to your blog,
Configure WordPress to access that account, and
Configure WordPress to publish messages from the e-mail account
You can blog by e-mail using most
standard e-mail software programs or a
Weblog Client -- a program
specifically designed to send posts
via email.
Link to the documentation: http://codex.wordpress.org/Blog_by_Email
For this purpose, you can use the following plugins: gravity forms (one of the best, but not free) post from site and quick post widget.
TDO forms is a waste of time, in my opinion: it's very difficult to use and to learn.