今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
The functions file
- [Instructor] With the basics of PHP under your belt, let's take a look at some WordPress-specific features and conventions. The first question we need to answer is where to put your custom code. Well, in every WordPress theme there is a file called functions. So if we go to our WordPress directory, into wp-content, and then themes, and we select any one of these themes, we'll see a file called functions.php. functions.php is a place where a lot of miscellaneous code goes. So if you want to do something like change the excerpt link text, or add something to your footer, you can do it in functions.php. This is also the simplest way to make changes to your WordPress site because it's a low barrier of entry. Every theme has a functions.php file so you don't need to take additional steps to define the file, like with a plugin, or activate it, which you'd also have to do with a plugin. This is also great because you…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。