Yaron Guez
Forum Replies Created
-
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] How can I disable cron output?I thought it might also help to clarify: I’m not using WP-CLI. The backup job is scheduled with WordPress Cron. However I have disabled the automated WordPress cron by adding
define('DISABLE_WP_CRON', 'true');
in my wp-config.php file. I kick of wp-cron manually with a cron job that calls:
php -q wp-cron.php
every 6 hours and emails any output to me. Typically the output is only errors that need to be corrected however each night the output includes the progress of the BackWPup plugin as well. I’d like to disable this output.I hope that clarifies the situation.
Forum: Plugins
In reply to: [BackWPup – WordPress Backup & Restore Plugin] How can I disable cron output?Hi Daniel,
Thanks for getting back to me! I’ve always kicked off wp-cron.php using the php binary from a cron job and all the documentation I’ve seen out there recommends this approach. This approach works fine with every other plugin that only outputs warnings or errors if something goes wrong as opposed to outputting a progress report. Is there a filter I can hook into to turn this progress off? It doesn’t seem standard WordPress practice to include it in wp-cron output without such an option to disable.Hi it’s been a week without a reply so I’d thought I’d bump this up again. I’m still not receiving file change emails and now I’m also not receiving admin notifications. I tried turning on database backups and those emails DO come through. It’s only the file change warnings that don’t trigger emails and don’t trigger admin notifications in the dashboard. I use iThemes Security on a dozen other websites and don’t have this issue so it’s very confusing. Please advise, thanks!
@ supawiz6991, the username is getting logged out but only after 1 attempt instead of the 10 that it’s set to.
We don’t use username of admin on any site.
We also don’t display username on the site anywhere.
Any other ideas?
@dwinden,
I’m not familiar with the iTSec Pro plugin. We’re using this standard Google Authenticator plugin:
https://www.ads-software.com/plugins/google-authenticator/Any idea why a user would be locked out after only one attempt and how we can prevent this from happening?
Forum: Plugins
In reply to: [Force Lowercase URLs] Should exclude query variables too*starred. i’d share the function as a gist too since it’s simple enough to include in a custom functionality plugin.
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] Notify specific roles for specific forumsHi Calie,
We used the Advanced Custom Fields plugin and the Advanced Custom Fields User Role Selector plugin to add an “override new topic notifications” and “override reply notifications” fields to each forum post type. We then added the following code to our functions.php:/** * Helper function to get list of recipients for given forum ID and notification type * @param $type currently 'topic_override' or 'reply_override' * @param $forum_id * @return array */ function studiopie_get_recipients($type, $forum_id){ $topic_notify = get_field($type, $forum_id); $recipients = array(); foreach ($topic_notify as $opt_recipient) { if (! $opt_recipient) continue; $users = get_users(array('role' => $opt_recipient)); foreach ((array)$users as $user) { $user = get_object_vars($user); $recipients[$user['ID']] = $user['ID']; // make sure unique recepients } } return $recipients; } /** * Override new topic forum notifications */ function studiopie_topic_notify($recipients, $topic_id, $forum_id ){ $topic_override = get_field('topic_override',$forum_id); if($topic_override !== true) { return $recipients; } return studiopie_get_recipients('topic_notify', $forum_id); } add_filter( 'bbpress_topic_notify_recipients', 'studiopie_topic_notify', 10, 3 ); /** * Override reply forum notifications */ function studiopie_reply_notify( $recipients, $reply_id, $topic_id, $forum_id){ if($forum_id === 0) { $forum_id = bbp_get_topic_forum_id($reply_id); } $reply_override = get_field('reply_override',$forum_id); var_dump($reply_override); if($reply_override !== true) { return $recipients; } $recipients = studiopie_get_recipients('reply_notify', $forum_id); return $recipients; } add_filter( 'bbpress_reply_notify_recipients', 'studiopie_reply_notify', 10, 4 );
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] Notify specific roles for specific forumsNice! Happy to help ??
Forum: Plugins
In reply to: [bbPress Notify (No-Spam)] Notify specific roles for specific forumsHi Vinny,
I took care of this for James and noticed a bit of a bug (depending on interpretation). In your notify_new_topic (line 234) method, you have this conditional:if (0 === $forum_id) $forum_id = bbp_get_topic_forum_id($topic_id);
However, you don’t have the same conditional in notify_new_reply (line 301) and $forum_id and $topic_id are always 0 based on the way they’re called. Adding
if($forum_id === 0) { $forum_id = bbp_get_topic_forum_id($reply_id); }
would provided a valid forum_id to the resulting filters.
Thanks!
YaronAnyone find a way to turn this off?
Devorah, I’m not sure if your problem is the same as mine, but mine was caused by having a second SMTP plugin installed as well without realizing it, in this case “Configure SMTP”. As soon as I removed the second plugin the problem went away. Hope that helps!
I’m having the same problem on a Catalyst theme but not on another site. Any ideas?
Forum: Plugins
In reply to: [Post Type Archive Link] No post types displayedUPDATE: never mind, it’s working now. I hadn’t committed some code changes from git.
I resolved this by going to WHM (cPanel) and changing the following setting:
Server Configuration
Tweak Settings
“Mail” tab
Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak) -> On
Prevent “nobody” from sending mail -> OnIf you don’t have access to this setting, contact your host.
You’re welcome. Is this feature I suggested on your to do list? I think it would add a great deal of value.