|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/build-a-custom-wordpress-plugin/
课程评论:没有评论
**课程名称:** **与其用主题的functions.php,不如自己建一个WordPress插件** **课程概述:** 本Coursera课程旨在教授WordPress用户如何通过构建自定义插件来替代在主题functions.php文件中添加自定义代码。这样做可以有效避免在主题更新时丢失所有自定义功能代码。 **主要优势:** * **避免代码丢失:** 与将代码直接添加到functions.php不同,自定义插件不会在主题更新时被清除,从而保证了您网站的稳定性和功能的持续性。 * **无需设置子主题:** 您不需要创建或维护子主题,进一步简化了WordPress网站的定制过程。 * **代码组织与隐藏:** 插件可以帮助您更好地组织和管理自定义代码,甚至可以在需要时隐藏代码。 * **代码便捷迁移:** 您可以轻松地将创建的插件移植到其他需要相似功能的WordPress网站上。 * **易于操作:** 课程提供清晰、简洁的指南,即使是初学者也能轻松上手,通过插件编辑器添加和管理代码。 **课程价值:** 本课程将帮助您学习一种更安全、更灵活的方式来定制您的WordPress网站,保护您的自定义功能免受主题更新的潜在影响,并提升您的WordPress开发技能。 **讲师:** Saujan
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