テーマ用の関数を作るには

テーマで使う処理をfunctions.phpに関数として記述することができる。
テーマのディレクトリにfunctions.phpを作成しておくと、テーマを初期化する際に自動的に読み込まれる。functions.phpはテーマによってはすでに存在しているので、自分用関数はここに追加すればよい。
functions.phpはテーマを初期化する際に自動的に読み込まれ、ここに書いた関数はテーマ内から呼ぶことができる。functions.phpでは冒頭の<?phpの前と、後尾の ?>の後ろに改行を入れないこと。

1件のコメント

  1. accommodation brac 2012年5月2日 08:33

    Hey there I am so grateful I found your blog page, I really found you by error, while I was looking on Bing for something else, Nonetheless I am here now and would just like to say cheers for a tremendous post and a all round thrilling blog (I also love the theme/design), I don’t have time to read through it all at the moment but I have saved it and also included your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the fantastic job.

    http://brac-croatia.info

コメントを残す

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>