islp
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Logger] Execution time@igortron This is what I’ve done recently for my plugins: I have many custom plugins in the same website and ANY plugin uses a bunch of identical static methods. I moved any methods to mu-plugins and removed the local copies in any single custom plugin directory (avoided duplication)
- This reply was modified 3 weeks ago by islp.
Forum: Plugins
In reply to: [WP Logger] Execution time@igortron Interesting solution, thanks 🙂
Forum: Plugins
In reply to: [WP Logger] Execution time@igortron ok, but I’m not sure this covers all the possible scenarios (that is maybe my plugin under some circumstances fires before all the plugins are loaded)
Forum: Developing with WordPress
In reply to: Plugin of utils being called from other plugins@ryanmax22 checking for the existence of a method or class is partially useful: as I told before, if you do that, then you need to cover the case when the class is not available (this means other code and complexity). Anyway, in my particular scenario (so NOT universally speaking) the mu-plugins idea is just perfect 🙂
Forum: Developing with WordPress
In reply to: Plugin of utils being called from other pluginsNo: any custom plugin needs this plugin that contains common functionalities.
As explained by another user, requiring (plugin dependencies) is not effective.
I solved by using the mu-plugins directory that loads before the plugins are loaded: there I put traits and static methods any plugin in any namespace can easily and safely use.
Forum: Developing with WordPress
In reply to: Plugin of utils being called from other plugins@alessandro12 That’s absolutely fine, but at that point you need a clear strategy: what happens if the plugin isn’t active? I feel that this would end up overcomplicating something that should be much simpler (at least, in my scenario). Anyway, even if I could create a sort of “master plugin”, I ended up moving my static methods to a custom mu-plugins directory
Forum: Developing with WordPress
In reply to: Plugin of utils being called from other plugins@bcworkz ok, thanks. In my specific case, method calls come way after the plugins are loaded, so it could be safe to use any class. Another option would be the mu-plugins directory but I red sometimes it gets attacked.
I don’t know who removed the AI generated answer but it was a good thing to do it.
Forum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboardHi @codekraft , I am very pleased with all the changes you have made to the plugin, but unfortunately, I am unable to assist you personally at this time. 🙁
Forum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboard@codekraft I mentioned it since we’ve been talking so casually, almost like we were chatting. I didn’t even think it was a big enough deal to bring up in a whole new conversation.
Cheers
Forum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboard@codekraft I found this one in debug.log but I have no time to investigate further:
[11-Feb-2026 13:48:04 UTC] cf7_smtp: Failed to set From and Sender: Invalid address: (From):
[11-Feb-2026 13:48:04 UTC] cf7_smtp: From mail empty/invalid. Fallback to admin_email: (my email here)
[11-Feb-2026 13:48:59 UTC] cf7_smtp: Failed to set From and Sender: Invalid address: (From):
[11-Feb-2026 13:48:59 UTC] cf7_smtp: From mail empty/invalid. Fallback to admin_email: (my email here)
I had no issue at all with your plugin, so I don’t know where this is coming from and why.Forum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboard🙂
Forum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboardPlease, @codekraft, do it for me, I deleted my github account some years ago and I’d prefer not to sign up again 🙂
No problem for the tests, they were just basic stuffForum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboardDone in a few minutes 🙂
Local setup with the good old XAMPP, PHP 8.2.12, Apache, etc.I only install 2 plugins: CF7 and yours.
I only have two users, ad admin and a subscriber.If I login as a Subscriber, I regularly see the “Stats for CF7 SMTP” widget in the dashboard.
If I replace your code with mine, it works as expected (that is: only the admin dashboard “features” the widget) 🙂- This reply was modified 1 month, 4 weeks ago by islp.
Forum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboardI currently use Wp-members and User role editor but Subscribers is a standard role, so I’m not sure there’s any relationship. In a couple of hours I could set up WP locally without any plugin except yours and give it a try.
Forum: Plugins
In reply to: [SMTP for Contact Form 7] CF7 stats in the Subscribers’ profile dashboardI confirm: as a regular Subscriber (so without using any plugin to impersonate a particular role) I can actually see the CF7 Stats widget in my dashboard.