ahcferret
Forum Replies Created
-
Forum: Plugins
In reply to: [Eonet Manual User Approve] woocommerce compatibilityTotally welcome to it!
Forum: Plugins
In reply to: [Eonet Manual User Approve] woocommerce compatibilityI’ve written some code that will do this – mine is very tied up in the specifics I’m building for my site, but here’s the bare bones of it. May require some debugging as I’ve not tested this stripped-down version.
Pasted below but also here to retain indents for legibility: https://pastebin.com/m9fNFUDP
function wp4625_handleuserstates()
{
if(is_user_logged_in())
{
if(current_user_can(‘administrator’) || current_user_can(‘editor’) || current_user_can(‘edit_posts’))
{
// The user is an Admin, Editor or other WP user with permission to edit pages
}
else
{
// get user status data from Eonet Manual User Approve plugin
$userapproved=get_user_meta( get_current_user_id(), ‘eonet_mua_status’ );if(is_array($userapproved))
{
if($userapproved[0]==1)
{
// an approved user
}
else if($userapproved[0]==0)
{
// a pending user – ensure they are logged out!
wp_logout();
}
else
{
// a disapproved user
}
}
else
{
// something unexpected happened
}
}
}
}
add_action(‘template_redirect’, ‘wp4625_handleuserstates’);Forum: Plugins
In reply to: [Eonet Manual User Approve] Need option to NOT reset passwordHi @antonioeatgoat – could you add this to information to the FAQ or documentation? I almost had to abandon the plugin until another user pointed me to this support topic.
Would love to give your plugin a high rating once this vital function is made clear to new users (or even better, if it was made an option in the plugin settings)!
- This reply was modified 7 years, 6 months ago by ahcferret.
That was it – it works with one ?? I didn’t realise email standards limited reply-all to one address only, I’ve not really had a use for it before this project. Thank you for your help!
Thank you Jess! (and hello WPForm users), here’s the notification and email header screenshots (note: field_id=”1″ used a standard email field in the form builder).
WPForms Notifications settings:
https://www.dropbox.com/s/k3is2go3tdscad8/notifications.gifEmail Header (note it lacks reply-to data!):
https://www.dropbox.com/s/97dcn749maik907/header.gifThat was via a Yahoo address. I have more complex Outlook 2013 headers from the second email in the To: field, but it also lacks any reply-to data… it has just the To, Subject, Date, From fields and a bunch of routing info etc for the email delivery.