
Learn to create a custom plugin to add codes instead of the theme's functions.php, so theme updates won't wipe changes. See example changing the logo and url via the plugin.
Hide the plugin and disable the editor by editing wp-config.php from the file manager, adding code above the line 'that's all, stop editing', and revert to re-enable.
Learn how to regain access to a WordPress site after a critical plugin error by using the file manager and wp-config to disable or revert faulty code, preventing dashboard lockout.
If you are using WordPress then you must be using custom codes on the theme’s functions to enhance the site’s functionality. But has there been a situation when you or your client updates the theme and that all codes are gone? Well to avoid this, we can build our own custom plugins and use them instead of fucntions.php.
Using custom plugins instead of functions.php will avoid losing your codes on any updates or whatsoever. You will also not have to set up a child theme. Additionally, you can organize codes on the plugin and also hide them if required.
Like you would add the codes to functions.php using the Theme Editor, you can do so by using the plugin editor too. This is very easy and most importantly there’s no need to create a child theme or have any fear of losing the codes if anything is updated. Additionally, you can take this plugin and use it on any other sites requiring similar functionality.
The tutorial is short and to the point, and with precise explanations. Please feel free to get back to me for any confusion.
I really hope you will learn something valuable out of this course and protect your WordPress website.
Thanks,
Saujan