Wednesday, March 29, 2017

Publisher: Wordpress

We have three new tips for WordPress users. We’ll tell you how to keep your users from annoying upgrade notifications, and how to disable theme changes. In addition, this guide to WordPress tells you how to perform updates – including git – with the system.


WordPress Guide: Upgrade Notifications


Anyone who provides a WordPress installation to their customers wants to ensure that the users of the CMS can not exceed their powers so that they do not cause any damage that requires additional work. To keep WordPress up-to-date with your users with the upgrade notification, add the following code to the functions.php file:


WordPress Guide: Disable Theme Switch


WordPress will now not display either a new update (update_nag option) or administrative notifications (admin_notices), but you will have to remember to make sure that the installation is up-to-date. A plug-in like Update Notifier can help. This plug-in sets you up via an update via email instead of hanging this information in the admin area to hang the big bell, which makes non-administrative users often unnecessary.


WordPress Guide: Importing Updates


To ensure that your WordPress customers can not make a change in a carefully optimized theme, add the following code
to the functions.php file


This is especially recommended for WordPress installations that use a customized theme. The code disables the submenu of the theme selection in the admin area of ​​WordPress, depending on the user ID. In the above example, WordPress displays the menu only for the first user, and all others (ID! = 1) will not get UI access to this function.


Anyone who works with other web developers on a WordPress project using a version control system like Git would like to update the used theme and / or the plug-ins on the staging and production servers with system. A free plug-in called ControlLiveChanges creates workarounds here, but this can not be found out of WordPress and is currently only available on the Github project page.


This plug-in detects whether the current installation is on a development system or on a remote staging or even the production server. To find out this information, the plug-in looks in HTTP_HOST for a freely definable string like typically localhost. If this string is not present in HTTP_HOST, the plug-in is switched on. By default, it disables the ability to import updates of the theme and plug-ins, as well as edit files. If necessary, however, upgrades of the core installation of WordPress can be prevented to ensure an unchanged environment.

No comments:

Post a Comment