New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Persistent Notices on your own admin page please #546
Comments
For 1, see this doc comment on how we register the notices... the-seo-framework/inc/classes/admin-init.class.php Lines 468 to 475 in 0404f31
...and how we test against that ( the-seo-framework/inc/classes/admin-pages.class.php Lines 450 to 463 in 0404f31
For 2, these are the conditions we applied to the upgrade notice, where we excluded many screens we thought it would've been annoying: the-seo-framework/inc/functions/upgrade-suggestion.php Lines 136 to 143 in 0404f31
We're very mindful of where, when, to whom, and how many times we output these notices. The last thing we want to do is turn users against us. Related (I also left my thoughts there): https://wptavern.com/is-wp-notify-the-silver-bullet-wordpress-needs-to-end-admin-notification-spam |
Well, I prefer that you left people the choice of not having any notifications at all. |
I think we're miscommunicating. Please understand that I'm building the plugin with the best intentions, and with all its users at heart. Unfortunately, I'm sometimes forced to make changes not everyone agrees with. I'll try to explain. 1: Persistent notices are meant to convey critical messagesThe persistent notice system wasn't built for marketing purposes. Instead, these types of notices will help users stay informed of critical changes made to their site or the plugin. For example:
Since you work in WP CLI, I'm sure you've never seen any notice of this kind. But, they were there—check the sources above. I think you should be welcoming of this change, for you might've missed a change affecting your or your collaborators' businesses. Now, if site administrators go about and filter where those notices should be outputted, they and their users might miss these when it's genuinely essential to the site. To reiterate, because WordPress added another reason for us to deliver critical messages in a particular fashion (next to CLI, there's also plugin auto-updates), we chose to go with the persistent-notices route. We mean to use it until the WP Notify project releases to the public. Hopefully, this is sooner than later (maybe WP 5.6?), because I know we're now adding to the problem. So, this whole issue might be resolved by the end of this year already! :) 2: The notice was meant to inform our users, and to get to know them.This is what the notice said:
As you can see, it wasn't just a marketing grasp. It was primarily meant to convey a message that the user's site was upgraded to v4.1, with a link to the changelog. It wouldn't be wise to output that only on the settings page, for that might've gone unnoticed. We also put a survey link there—that survey is vital for us moving forward since we know very little about our userbase (we don't track). The team behind the WordPress plugin repository is unreachable; we can't communicate with them about anything other than security issues or guideline violations. 3: We do not advertise within the plugin.TSF has no ads, and no upsells... not even branding. Nothing in the plugin steers our users to our premium services, yet we need to sell those to stay afloat. This is what TSF isn't: It's not the first plugin (AIOSEO), it's not the plugin that screams loudest (Rank Math), it's not the plugin with the biggest reach (Yoast SEO), nor the one that's cheap and doesn't fix smelly code (efficient approach, though) (SEOPress). TSF is the most secure, fastest, and most professional SEO plugin out there. We don't implement or remove features just to so we can sell more licenses. Major updates for TSF take thousands of hours to complete. Please take a minute just to scroll through and take a glimpse at the full v4.1 changelog—there you'll find minuscule changes we made to improve every aspect of the plugin. As a developer, I'm sure you'll understand that's beyond difficult. Yet, if you believe that the plugin has lost value because we added a single sentence that helps us next to one that helps you, then please tell me how I can do it better. Ultimately, it's vital for me to at least do some marketing within the plugin. The short end is that making a plugin with zero advertisements is self-deprecating. I believe we've been forced to add at least some hints of marketing since WordPress isn't there for its developers (here's another rant from a Core Team member). It's why I linked to the WP Tavern post in my previous reply, where this problem is sorely highlighted; it's caused by the melancholious ignorance of the WordPress plugin repo team. So, since TSF v3.0.6, I added a single extra notice that changes every time I bring a major release. Back then, I also added a constant we've been checking for ever since. So, to get back to your message:
We did. Add this to your wp-config.php file, and you'll never see these types of notices again: define( 'TSF_DISABLE_SUGGESTIONS', true ); That constant was in the plugin since v3.0.6. I never received any complaints about this before, so I forwent conveying that it existed in this update. I also trust developers to browse the code every once in a while, especially since security is so important. Alternatively, you can use this. It'll force all TSF's notices to go on "its" settings page. But, I don't know if you should use it; for the reasons explained above: add_action( 'the_seo_framework_after_admin_init', function() {
$tsf = the_seo_framework();
remove_action( 'admin_notices', [ $tsf, '_output_notices' ] );
add_action( 'the_seo_framework_setting_notices', [ $tsf, '_output_notices' ] );
} );
There's no mention of "The SEO Framework" on the settings screen. So, I'm not really sure if we can call it "ours".
I noticed. Yet, I hope I've conveyed my reasoning behind this clearly, and that we can move forward from here on out. I understand that the upselling part of the notice didn't convey well to you. I want to ask you why you think this is unacceptable. I also wonder why you haven't considered our services yet. Thank you! |
Well, that is again an amazing long response. Thank you for that. There is still one thing you are not considering. So, all your reasoning that you need to show things there, is wrong because the people that use your plugin, or at least this is what I have seen between other people I know, are people that know about WordPress and are not the "standard" user. So you are building this for them, but then you consider that they are not good enough to know when they need to read logs or not. About your business model, this is not the place to discuss, as this is a public forum and I prefer to send you my comments privately, if that is ok with you. |
I do consider people like you. This plugin came to fruition because I used to do the same work as you did. It's why I made the notification as non-obtrusive as possible, auto-dismissible, and not being outputted on pages authors have to do actual work. I also prevent all my clients from installing plugins, which is also checked against with this notification: I won't ever add anything to the plugin I wouldn't like to see in other plugins. The persistent notices also do not add anything more to your database than we did before the update. They use the same option index as "you updated your settings (or that went wrong)" ( I understand that you, as a developer, manage sites and wouldn't like your clients to see our once-in-a-year notification we output that helps us make a brilliant plugin freely available. For that, please register this constant: define( 'TSF_DISABLE_SUGGESTIONS', true ); However, if you check our support forums, you'll be greeted by a plethora of users that are not aware of new features, know nothing about multisites, host with GoDaddy, stick with WP 4.9 because they couldn't find the Classic Editor plugin, find that the FAQ structured data is the holy grail of success, enable right-click prevention, and are still figuring out how to press CTRL+SHIFT+R. We're dealing with over 140,000 users, and most of them aren't developers. Most of them need a helping hand, and we're there for them. If you disagree with something, feel free to send a PR that helps you filter it out; I'd love to see more contributors to this project! If you wish to discuss things privately, you can do so via our contact page. I'm considering this issue closed since we're flogging a dead horse: You can already filter it out, and this has been in our API docs since TSF v3.0.6: define( 'TSF_DISABLE_SUGGESTIONS', true ); |
This is from your development notification post: (source)
The whole WP admin is getting crazy, as you said yourself. I do not want to see the notices, I do not care, I read your logs and access the site from WP CLI.
So the only people watching this are clients or other collaborators that does not need to watch it at all.
So,
1- Can you make so that the notices are only shown on your plugin settings page?
And better one:
2.- Can you add a config option to disable completely them?
And if you add this with a wp-config constant that will be the best thing so we can disable them be default on all our sites.
Thanks
[sybrew edit: readability & markup, added link to source]
The text was updated successfully, but these errors were encountered: