开发者 | gsarig |
---|---|
更新时间 | 2024年3月1日 20:59 |
捐献地址: | 去捐款 |
PHP版本: | 7.0 及以上 |
WordPress版本: | 6.4 |
版权: | GPLv2 or later |
slash_dump()
instead of var_dump()
will wrap the output in
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).You can enable the following shortcodes:
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
tags, for better readability.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.
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.
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.
You can allow editors access to one or more of the following sub-sections of the "Appearance" section:
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.
Category
from archives" is selected, "Tag:" prefix will be removed too from tag archives.slash_admin_dump()
which is similar to slash_dump()
but this time it will only show the output if you are an Admin.slash_dump()
function which you can use instead of var_dump()
to wrap the output in
tags, for better readability.