Quantcast
Channel: WordPress.org Forums » [WP Mail SMTP by WPForms - The Most Popular SMTP and Email Log Plugin] Support
Viewing all articles
Browse latest Browse all 5009

Hide plugin settings if filter is set to false

$
0
0

Replies: 0

Hi. I really appreciate the liberal use of apply_filters in your codebase. I prefer to version control my preferences versus having them saved in the database. With that being said, I am toggling some of your features off with said filters BUT the checkbox options still display on the admin screen. For example, if I set the filter, wp_mail_smtp_reports_emails_summary_is_disabled to __return_false, there should also be a conditional that hides the entire block of code starting at line 246 in wp-content/plugins/wp-mail-smtp/src/Admin/Pages/MiscTab.php. That would remove the option completely from the admin screen. This is only one example. Ideally, this entire screen could be cleaned up if a person chooses to set their config via code and version control it. Thanks in advance!


Viewing all articles
Browse latest Browse all 5009

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>