Slash Admin gathers some common functions that you probably need in most of your websites. The plugin lets you change various different options in a WordPress website, keeps them active even if you switch your theme and helps you create a friendlier Admin Panel for you and your editors.
If you are lost with the many options, here’s a presentation of the plugin’s best features.
- Option to point to a static splash page.
- Option to convert email addresses characters to HTML entities to block spam bots.
- Show EU Cookie Law consent message (check screenshots about available options). Since v.3.0 it also supports WPML for different message per language.
- Add a «Loading» animation which hides itself when the page is fully loaded
- Enqueue your own Google Web Fonts, with option to load it locally for better performance and privacy
- Get rid of the word «Category:» in front of the Archive title (usually needed if your theme uses the_archive_title()).
- Add excerpt support to pages.
- Enable the use of shortcodes in widgets.
- Display a warning for users of old versions of Internet Explorer (IE8 or older). Yes, sadly there are still people who use Internet Explorer 8…
- Insert Google Analytics tracking code (so as you don’t have to remember re-entering it in case you switch themes in the future)
- Hide Site Health from everyone except from a selected Admin (read more)
- Hide ACF options from everyone except from the selected Admin
- Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. By default, it will be sent to the admin email. Slash Admin allows you to override it (you can also add multiple recipients if you like). Read more
- Change the address that receives the Plugin and Theme auto-update email notifications
- Make WordPress respect the order of the tags you insert in a post (read more)
- Limit the number of revisions that WordPress keeps for each post (keeps the database cleaner)
- Prevent Post Updates and Deletion After a Set Period. Useful if you have many editors or in cases where an editor’s account is compromised, adding spam code to the posts (by disallowing editing of older posts you limit the damage)
- Enable Jetpack development mode
- Move Jetpack share and like buttons
- Maintenance mode. If checked, non-Admins will not be able to acess the WordPress backend and they will see a customizable message instead. Useful if you want to perform some maintenance work to your website and you don’t want your Editors to add or modify the content before you finish. Admins are not affected and they can always login as usual.
- Add your custom logo at the WordPress log-in screen
- Make the login screen logo (custom or default) linking to your website’s homepage instead of wordpress.org
- After login, redirect users at the homepage instead of their profile page
- Disable the Admin Bar for all users except Administrators. Applies only to the front-end. It’s useful if you want your site to be visible only to logged-in users (e.g. during developement phase), but you don’t want them to access the dashboard or get confused with the admin bar
- Add your custom CSS to the login screen to completely change its appearance
- Hide unnecessary options from the Admin menu for non admins (so editors won’t get overwhelmed with options that have no meaning for the current website).
- Disable tags and categories
- Hide specific pages from non admins. For example, you might not want your editors to have access to the static frontpage, the blog page or pages that you use as page templates.
- Allow editors to manage Menus and Widgets and access some other appearance settings previously acessible only to admins (for example, you might want to give your client the option to modify the website’s menu, but you would rather avoid making him/her an administrator).
- Hide notices about updating WordPress and other plugins for all users except from Admins (sometimes clients get confused with those notices and think that there is something wrong with the website).
White label backend
- Change the «Howdy» message at the top right corner of the admin (both backend and logged-in frontend)
- Change the default footer text at the admin
- Replace the WordPress logo at the top left corner of the admin bar with your own (both backend and logged-in frontend)
- Replace the default Welcome message at the Dashboard with your own
- Add a Dashboard Widget to provide general or commercial information to your clients (for example: your contact info or links to support documentation)
- Add your own custom CSS for the Admin area
- Disable Emojis
- Disable wp-embed script from the frontend or load it conditionally
- DNS prefetching notifies the client that there are assets we’ll need later from a specific URL (outside our website’s domain) so the browser can resolve the DNS as quickly as possible.
- Link prefetching and prerendering. Link prefetching is a browser mechanism, which utilizes browser idle time to download or prefetch documents that the user might visit in the near future. A web page provides a set of prefetching hints to the browser, and after the browser is finished loading the page, it begins silently prefetching specified documents and stores them in its cache. When the user visits one of the prefetched documents, it can be served up quickly out of the browser’s cache. Prerendering downloads and renders the entire page and hides it from the user until it is requested, therefore, it should be used with caution.
- If you manually include email addresses in your posts, you should consider disguising them in order to «fool» e-mail harvesters (check FAQ for details).
- Show a telephone number in a way that it is clickable. When clicked, if you are on a mobile device it opens the phone’s dialer and if you are on a desktop computer it prompts to make a call via a related program (e.g. Skype).
- If you develop your site on localhost or on a temporary URL, you might want to avoid absolute URLs inside posts and pages. That way you don’t need to update your links after migrating to your actual domain (check FAQ for details).
var_dump()will wrap the output in
<pre></pre>tags, for better readability.
slash_admin_dump()does the same thing, only this time the output is only visible to admins (can be handy if you want to debug a live site).
- Show warnings if the site is on air and debug mode is still on and if the site is on localhost and debug mode is off. Also, show warning if the website is on air and you have chosen to hide it from Search Engines.
Slash Admin displays the following notifications:
- A list with the users who logged in during the past 15 minutes (except from you, obviously)
- A warning when debug mode is enabled (you should enable it when developing, but disable it when the site goes live)
- A warning when your site is hidden from search engines
- Upload the Slash Admin plugin to your WordPress plugins directory and activate it.
- Go to Tools / Slash Admin and set your preferred options.
Which shortcodes are available?
You can enable the following shortcodes:
- [slash_mail address=»email@example.com»] – disguises the email address to make it unreadable from mail harvesters and displays it as plain text.
- [slash_mailto address=»firstname.lastname@example.org»] – does the exact same thing, but it also transforms the text to a «mailto» link as well.
- [slash_mail] and [slash_mailto] (same as above but with no parameters given) automatically retrieve the email address of the author of a post/page. All the above shortcodes use the WordPress’ antispambot() function.
- [slash_phone number=»PHONE_NUMBER» prefix=»COUNTRY_PREFIX» text=»ANCHOR_TEXT»] – Shows a telephone number in a way that it is clickable. When clicked, if you are on a mobile device it opens the phone’s dialer and if you are on a desktop computer it prompts to make a call via a related program (e.g. Skype). The «number» parameter is the only one that is absolutelly required. Here are some usage examples: [slash_phone number=»999999″] would output a link «999999» which would make a phone call to 999999. [slash_phone number=»999999″ prefix=»+30″] would output a link «999999» which would make a phone call to +30999999. [slash_phone number=»999999″ prefix=»+30″ text=»Call us»] would output a link «Call us» which would make a phone call to +30999999.
- [slash_home] – retrieves the home URI for the current site. It is the equivalent of echoing the home_url().
- [slash_theme] – retrieves the template directory URI for the current theme. It is the equivalent of echoing the get_template_directory_uri().
- [slash_child] – retrieves the stylesheet directory URI for the current theme/child theme. It is the equivalent of echoing the get_stylesheet_directory_uri().
Which special functions are available?
Slash Admin includes the following functions which you can use in your code:
slash_dump()– You can use it instead of
var_dump()to wrap the output in
<pre></pre>tags, for better readability.
My theme also supports some of this plugin’s features. Which one should I choose?
It is up to you to decide whether you will use your theme’s options or those provided by this plugin. It is recommended, though, that you keep those settings separated from your theme and the reason is simple: If at some point you decide to switch themes, those options will be lost and you have to remember to re-enter them. Keeping them in a plugin maintains the options between themes.
Is it wise to hide update notices from my users?
Generally speaking, no. WordPress’ default behaviour is probably the best, that’s why the specific option is disabled by default. In some cases, though, users might get confused with those notifications or think that something is wrong with the website. In cases like that, you might want to keep the update notifications visible only for those who can apply them – namely the administrators. Keep in mind that, technically, selecting this option won’t remove the notifications for the non-admins – it will just hide them with CSS.
What does hiding options for non-admins means?
Sometimes you only use certain features of WordPress. For example, your website might have comments disabled or not using the Links feature. Also, for better usability you might want to show your users only the options that concern them. Hiding those options won’t remove them. You, as an administrator, will always see the full list of all the available options. An editor, though, won’t see the hidden options, which helps him focus to only those that concern him.
How does allowing access to appearance settings work?
You can allow editors access to one or more of the following sub-sections of the «Appearance» section:
Old browser warning behaves strangely with W3TC plugin
This is a known issue. When Page Caching is activated in the W3 Total Cache plugin, the old browser warning becomes unpredictable and it may appear not only in Internet Explorer 8 but in newer IE versions as well as in Chrome. To deal with the problem you need to disable either the old IE warning or the W3TC Page Cache option.
Colaboradores y desarrolladores
«Slash Admin» es un software de código abierto. Las siguientes personas han colaborado con este plugin.Colaboradores
Registro de cambios
- Fixes a fatal error with WordPress 6.1
- Added option to preload locally downloaded web fonts
- Updated web font loader
- Replaced intval() with type casts
- Fixed an bug with «Show extra options to Editors» option
- Updated plugin minimum requirements
- Internet Explorer warning refactoring improvements
- Loader refactoring and performance improvements
- EU Cookie popup refactoring and performance improvements
- Added option to inject scripts on body and footer, along with the already existing option for the header
- NEW FEATURE: Make WordPress respect the order of the tags you insert in a post
- IMPROVEMENT: Change the address that receives the Plugin and Theme auto-update email notifications
- Updated webfont-loader script, which fixes bug #7
- Added option to locally load External fonts, using webfont-loader.
- Fixed a bug with displaying header scripts
- Restrict «techie» users dropdown options to admins only.
- NEW FEATURE: Added an option to assign a specific admin user as «Techie». Doing so, will hide some functionalities from every other admin except from the Techie. Those functionalities include Site Health and ACF settings.
- NEW FEATURE: Added option to conditionally load scripts based on whether the eu_cookie is stored.
- Fixed a warning on the login page when a custom image is added.
- Removed the deprecated «Add favicon» option.
- Updated old IE warning to appear on all versions of Internet Explorer.
- Removed the now unneeded option to Unload Open Sans as WordPress ditched it a few versions ago.
- NEW FEATURE: Added option to override WordPress’ recovery mode email.
- NEW FEATURE: Added option to filter the_content and automatically obfuscate email addresses using the antispambot() function. Just set it and forget it (It can be found under Frontent / Miscellaneous section). No need to use the [slash_mailto] and [slash_mail] shortcodes on your main content anymore.
- When «Remove
Categoryfrom archives» is selected, «Tag:» prefix will be removed too from tag archives.
- Fixed a minor bug where the «cookie notice» immediately showed up after the plugin was activated, even though it had not been manually set to «on».
- NEW FEATURE: Added option to point to a static splash page.
- Fixed an issue where login_headertitle is deprecated since version 5.2.0
- Fixed a warning where getimagesize() failed to open stream
- Better check on whether the site is under development or not.
- Minor improvement on cookielaw consent check script.
- Fixed «getimagesize failed to open stream: HTTP request failed» notice on login page when a custom logo is uploaded.
- Allow iframes (e.g. youtube embeds) on WP Admin (check the related discussion: https://wordpress.org/support/topic/any-plans-or-ideas-welcome/)
- Fixed incompatibility with PayPal for WooCommerce plugin
- If you want to bypass Gravity Forms permission options and use your own, you can create a function slash_bypass_gravityforms_permissions function on your theme.
- NEW FEATURE: Added option to remove Gravity Forms’ «Add Form» button from all WYSIWYG editors
- IMPROVEMENT: Include shop_manager role to users with access to Gravity Forms entries.
- IMPROVEMENT: Option to change the text «if the spinner keeps loading forever…» text with custom wording.
- FIX: EU Cookie Law consent message: get the proper data depending on whether the «Get message from page» option is selected or not.
- FIX: Maintenance mode bug.
- UPDATE: Show old Internet Explorer warning to IE9 and below (up until now it was from IE8 and below).
- NEW FEATURE: Allow editors to view Gravity Forms entries
- Properly remove jetpack using admin_menu action instead of admin_init, to prevent a PHP warning
- NEW FEATURE: Enable Jetpack development mode
- NEW FEATURE: Move Jetpack share and like buttons
- IMPROVEMENT: Show extra options to editors now also works for WooCommerce Shop Managers
- IMPROVEMENT: If page loader takes too long, a message appears informing the user that he/she can click to close it
- NEW FEATURE: Show a list of users who logged in recently (during the past 15 minutes)
- NEW FEATURE: EU Cookie Law consent message can retrieve data from a page. Particularly useful if you use WPML and you want different wording per language.
- NEW FEATURE: Added option to disable tags and categories
- NEW FEATURE: Added option to disable Emojis
- NEW FEATURE: Added option to disable wp-embed script or load it conditionally
- NEW FEATURE: Added function
slash_admin_dump()which is similar to
slash_dump()but this time it will only show the output if you are an Admin.
- Get rid of the taxonomy name in front of the taxonomy archive titles.
- Replaced  with array() to prevent breaking the site on servers with old versions of PHP (less than 5.4).
- Fixed a PHP warning when debug mode is on and no pages are yet selected or deselected for hiding.
- NEW FEATURE: Hide specific pages from non admins. For example, you might not want your editors to have access to the static frontpage, the blog page or pages that you use as page templates.
- NEW SHORTCODE: Show a telephone number in a way that it is clickable. When clicked, if you are on a mobile device it opens the phone’s dialer and if you are on a desktop computer it prompts to make a call via a related program (e.g. Skype).
- NEW FEATURE: Get rid of the word «Category:» in front of the Archive title (usually needed if your theme uses the_archive_title()).
- NEW FEATURE: Add excerpt support to pages.
- NEW FEATURE: Enable the use of shortcodes in widgets.
- Added proper text domain support for internationalization
- FIX: PHP7 support (fixed a bug which crashed the admin on PHP 7)
- NEW FEATURE: Added
slash_dump()function which you can use instead of
var_dump()to wrap the output in
<pre></pre>tags, for better readability.
- Updated the text domain to exactly match the WordPress plugin slug, in order to prepare for WordPress Plugin Language Packs.
- Small bugfixes for WordPress 4.4 compatibility
- NEW FEATURE: Option to display a «Loading» animation which hides itself when the page is fully loaded
- NEW FEATURE: Warnings if the site is on air and debug mode is on or if is on localhost and off. Also, warning if the site is on air and hidden from search engines.
- Other small bugfixes
- NEW FEATURE: Option to show an EU Cookie Law consent message
- Updated translations
- NEW FEATURE: Change the «Howdy» message at the top right corner of the admin (both backend and logged-in frontend)
- NEW FEATURE: Change the default footer text at the admin
- NEW FEATURE: Replace the WordPress logo at the top left corner of the admin bar with your own (both backend and logged-in frontend)
- NEW FEATURE: Replace the default Welcome message at the Dashboard with your own
- NEW FEATURE: Add a Dashboard Widget to provide general or commercial information to your clients (for example: your contact info or links to support documentation)
- NEW FEATURE: Add your own custom CSS for the Admin area
- NEW FEATURE: Now the plugin’s options page display a discreet warning when debug mode is enabled, to remind you that you should disable it when you go on air
- NEW FEATURE: Add your custom CSS to the login screen to completely change its appearance
- Improvements to the media uploader
- Fixed a small bug.
- Fixed a small bug.
- Removed the deprecated since WordPress 4.3 function wp_htmledit_pre().
- NEW FEATURE: DNS prefetching.
- NEW FEATURE: Link prefetching and prerendering.
- ADDED option to hide any element in the admin via its CSS id or class.
- The «Upload your favicon» option now suggests to the user that he/she should prefer WordPress’ native «Site Icon» option instead.
- NEW FEATURE: MAINTENANCE MODE. If checked, non-Admins will not be able to acess the WordPress backend and they will see a customizable message instead. Useful if you want to perform some maintenance work to your website and you don’t want your Editors to add or modify content before you finish. Admins are not affected and they can always login as usual.
- Added default values to the shortcodes that protect emails from harvesters. Now you can just use [slash_mail] (for plain text) or [slash_mailto] (for a mailto link) and it will automatically display the author’s email address.
- Fixed a PHP notice about an undefined property on login screen, when debug mode was enabled and login redirect option was checked.
- Updated FAQ and Documentation.
- NEW FEATURE: Added shortcodes for protecting email addresses from harvesters and getting the website URL dynamically.
- ADDED option to hide Jetpack menu from Editors.
- Fixed a bug which prevented redirecting to homepage after login from working properly.
- Updated greek translation.
- Fixed some issues with how the logo appeared at the login screen to some users. Now it tries to adjust the image dimensions in a smarter way.
- NEW FEATURE: Added option to unload the default WordPress Open Sans font and enqueue your own Google Web Fonts
- Complete redesign
- Minor performance improvements
- Added option for allowing editors to manage Menus and Widgets and access some other Appearance settings previously acessible only to admins
- Some minor changes in the appearance of the plugin’s options page
- Updated documentation
- Updated Greek translation
- Added option to limit the number of revisions that WordPress keeps for each post
- Added option to block post updates and deletion if the post is older than a specific period of time. Applies only to editors (admins can still edit the post as usual)
- Added option to hide additional fields from non admins
- Added Greek translation
- Added WordPress 3.8 compatibility
- New design
- Improved the appearence of the image at the login page
- Added option to show a warning for users of old versions of Internet Explorer
- Added option to disable Admin Bar for non admins (only in the front-end)
- Added option to hide update notices for non admins
- Option to redirect users to the homepage after login (instead of their profile page)
- Some tidying up to the options page
- Added documentation
- First release!