{"id":164045,"date":"2022-10-26T08:33:54","date_gmt":"2022-10-26T08:33:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/snillrik-settings\/"},"modified":"2026-05-13T10:37:14","modified_gmt":"2026-05-13T10:37:14","slug":"snillrik-settings","status":"publish","type":"plugin","link":"https:\/\/es-uy.wordpress.org\/plugins\/snillrik-settings\/","author":14878790,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5.1","stable_tag":"1.5.1","tested":"6.9.4","requires":"4.5","requires_php":"7.4.0","requires_plugins":null,"header_name":"Snillrik Settings","header_author":"Mattias Kallio","header_description":"Snillrik settings is a plugin for som basic settings like turning of Gutenberg, adding css, turning of comments etc.","assets_banners_color":"81794f","last_updated":"2026-05-13 10:37:14","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.snillrik.se\/","header_author_uri":"http:\/\/www.snillrik.se","rating":0,"author_block_rating":0,"active_installs":40,"downloads":1861,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["changelog","description"],"tags":{"1.3.0.1":{"tag":"1.3.0.1","author":"mattiaspkallio","date":"2025-02-18 14:03:59"},"1.4.0":{"tag":"1.4.0","author":"mattiaspkallio","date":"2025-04-17 13:01:58"},"1.4.5":{"tag":"1.4.5","author":"mattiaspkallio","date":"2025-12-04 12:14:17"},"1.4.6":{"tag":"1.4.6","author":"mattiaspkallio","date":"2025-12-04 12:14:17"},"1.5.0":{"tag":"1.5.0","author":"mattiaspkallio","date":"2026-01-06 15:04:11"},"1.5.1":{"tag":"1.5.1","author":"mattiaspkallio","date":"2026-05-13 10:37:14"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":2804543,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2909394,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3.0.1","1.4.0","1.4.5","1.4.6","1.5.0","1.5.1"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2804543,"resolution":"1","location":"assets","locale":"","width":1140,"height":858}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[75991],"plugin_category":[43,44],"plugin_contributors":[230700],"plugin_business_model":[],"class_list":["post-164045","plugin","type-plugin","status-publish","hentry","plugin_tags-common-settings","plugin_category-customization","plugin_category-discussion-and-community","plugin_contributors-mattiaspkallio","plugin_committers-mattiaspkallio"],"banners":{"banner":"https:\/\/ps.w.org\/snillrik-settings\/assets\/banner-772x250.jpg?rev=2909394","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/snillrik-settings\/assets\/icon.svg?rev=2804543","icon":"https:\/\/ps.w.org\/snillrik-settings\/assets\/icon.svg?rev=2804543","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/snillrik-settings\/assets\/screenshot-1.jpg?rev=2804543","caption":""}],"raw_content":"<!--section=changelog-->\n<p>1.5.1 - 2026-03-30\n* Feature: Added a setting to turn on maintenance mode, which shows the default WP maintenance page to visitors.\n* Tested compatibility with WP 6.9.4<\/p>\n\n<p>1.5.0.1\n* Fixed: settings links in the plugin page did not work.<\/p>\n\n<p>1.5.0 - 2026-01-06\n* Security: Enhanced input validation and sanitization throughout all forms\n* Security: Added nonce verification for category color field operations\n* Security: Improved database query security with $wpdb-&gt;prepare() for transient deletion\n* Security: Added wp_unslash() to all POST data handling\n* Improved: Better escaping for all output (esc_attr, esc_url, esc_html)\n* Improved: Added absint() for numeric CSS values in login page\n* Code quality: Added phpcs:ignore comments for validated safe output via wp_kses\n* Code quality: Added phpcs:ignore for WooCommerce nonce (handled by WooCommerce core)\n* Code quality: Added phpcs:ignore for direct database queries where WP API is unavailable\n* Fixed: Proper sanitization of honeypot field in WooCommerce registration form<\/p>\n\n<p>1.4.6 - 2025-12-04\nTest compability with WP 6.9\nMinor code changes.<\/p>\n\n<p>1.4.5 - 2025-07-03\nTest compability with WP 6.8.2\nAdded upload for SVG and removed WP Emoji.\nSome minor code structure changes.<\/p>\n\n<p>1.4.0 - 2025-04-17\nTest compability with WP 6.8\nAdded a setting for turning off specualtion loading.<\/p>\n\n<p>1.3.0.1 - 2025-01-17\nFixed login logo that did not work on multisites.<\/p>\n\n<p>1.3.0 - 2024-10-30\nTest compability with WP 6.7<\/p>\n\n<p>1.2.6.1 - 2024-08-18\nMinor buggfix login logo if no logo is set.<\/p>\n\n<p>1.2.5 - 2024-08-15\nMinor buggfix and check with 6.6.1<\/p>\n\n<p>1.2.4 - 2024-03-12\nAdded a color field to the category.<\/p>\n\n<p>1.2.3 - 2023-12-19\nCode prettyfying and more clever honeypot. Still very simple..<\/p>\n\n<p>1.2.2 - 2023-12-13\nBugfix space before start of file sometimes caused error message..<\/p>\n\n<p>1.2.1 - 2023-12-13\nBugfix missing file.<\/p>\n\n<p>1.2.0 - 2023-12-13\nSome code prettyfying and minor security fixes.<\/p>\n\n<p>1.1.7 - 2023-12-13\nAdded a very simple honeypot function to the register form.<\/p>\n\n<p>1.1.5 - 2023-05-08\nCSS fix for the settings page -fix. \nChanged the top image for the plugin page.<\/p>\n\n<p>1.1.4 -2023-03-29\nHad to be able to turn off the admin toolbar in frontend, but show it for a couple of roles. So added a setting for that.\nPrettyfying UI\nTest compability with WP 6.2<\/p>\n\n<p>1.1.3 - 2023-03-27\nAdded a link to settings from the pluginspage.<\/p>\n\n<p>1.1.2 -2023-03-27\nAdded a setting for using the logo set in the customizer as login logo.<\/p>\n\n<p>1.1.1 - 2023-01-12\nFixded some bugs, the settings did not register properly.<\/p>\n\n<p>1.1.0 - 2023-01-06\nMoved all settings html for each setting to its class.\nAddes a new setting for default email and email name (ie the wordpress@mydomain.org)<\/p>\n\n<p>1.0.4 - 2022-12-28\nAdded a redirect option for logout.<\/p>\n\n<p>1.0.3 - 22-12-05\nFixed minor bug in woo redirect to cart (sometimes it did not work)\nAdded a redirect for the profile page.\nAlso changed wrong date in changelog. :)<\/p>\n\n<p>1.0.2 - 2022-11-25\nChecking 6.1.1 and php 8.1.x<\/p>\n\n<p>1.0.1 adding esc where needed and removed some unused code. Corrected missmatching versions<\/p>\n\n<p>1.0.0 first version, still with hope of a bright future.<\/p>\n\n<!--section=description-->\n<p>To easily turn on and off some settings that often is done with hooks, hacks or filters in WordPress.<\/p>\n\n<h3>Turn off Gutenberg<\/h3>\n\n<p>To turn off the default editor and use classic instead.<\/p>\n\n<h3>Turn off new Widgets<\/h3>\n\n<p>To use classic widgets instead of the new.<\/p>\n\n<h3>Turn off comments<\/h3>\n\n<p>For turning off the comments, both the fronten and in admin. Does not delete old comments.<\/p>\n\n<h3>Redirect login<\/h3>\n\n<p>Select a page to redirect to after logging in. Admins will still redirect to wp-admin.<\/p>\n\n<h3>Redirect logout<\/h3>\n\n<p>Select a page to redirect to after logging out.<\/p>\n\n<h3>Redirect profile<\/h3>\n\n<p>Select a page to redirect the profile link to, (the one in the admin bar etc.)<\/p>\n\n<h3>login logo<\/h3>\n\n<p>Use the logo set in the customizer as login logo. If no logo is set, it will use the default logo.<\/p>\n\n<h3>Titles on pages<\/h3>\n\n<p>Filter the_title -function to not show a title if there is a H1 in content. The Idea is that if you have a large image or other stuff that you want above the title, you just add a H1 where you want it and the automatic one will not be shown.<\/p>\n\n<h3>Admin toolbar in frontend<\/h3>\n\n<p>Does not show the toolbar in fronted. You can select witch roles that should still see it.<\/p>\n\n<h3>E-mails<\/h3>\n\n<p>Redirect all emails to admin to ensure that customers or users get no emails.\nProbably mostly used for development and testing.<\/p>\n\n<h3>Default email<\/h3>\n\n<p>Set the default name and email address for all emails sent from the site. ie the wordpress@mydomain.org mail.<\/p>\n\n<h3>XMLRPC<\/h3>\n\n<p>Turn off xmlrpc.php xmlrpc is used to communicate with WP and is mostly not used, but it is a way for haxxor type people to attack your site.<\/p>\n\n<h3>Speculative loading<\/h3>\n\n<p>This turns off, or sets the mode and eagerness, of the Speculative loading of the page. This is a new feature in WP 6.8 that loads the page before you click on it.\nWhile it's mostly a good feature, but i might need some tweaking or turning off.<\/p>\n\n<h3>WooCommerce<\/h3>\n\n<p>If WooCommerce is active on the site, you can choose to redirect to Checkout after \"add to cart\", so skipping the cart-part.<\/p>\n\n<p>A very simple honeypot-function for the register form.<\/p>\n\n<h3>Get the WordPress customizer back<\/h3>\n\n<p>In themes like the Twentytwentytwo it's really hard to find the link to the customizer. This adds it under Appearance, ...where he belongs!<\/p>\n\n<h3>Colors for Categories.<\/h3>\n\n<p>Add a color field to the category to be able to add a color to the category. you get it by using something like this:\nget_term_meta( $post_term_id, 'category_color', true )<\/p>\n\n<p>It has a filter for what taxonomies to use, so it can be used for other taxonomies than categories.\nadd_filter(\"snset_categories_for_categorycolor\", function ($taxonomies) {\n    $taxonomies[] = \"dude-type\";\n    return $taxonomies;\n}, 10, 1);<\/p>\n\n<h3>Upload SVG<\/h3>\n\n<p>Allow SVG uploads to the media library. This is a security risk, so use it with caution<\/p>\n\n<h3>Remove WP Emoji<\/h3>\n\n<p>Remove the WP Emoji script and styles. This is a performance improvement, since it removes a lot of unnecessary code that is loaded on every page.<\/p>","raw_excerpt":"To easily turn on and off some settings that often is done with hooks, hacks or filters in WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/164045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=164045"}],"author":[{"embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mattiaspkallio"}],"wp:attachment":[{"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=164045"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=164045"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=164045"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=164045"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=164045"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-uy.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=164045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}