WordPressテーマでは、CSSやJSなどの外部ファイルをfunctions.phpで読み込むことが推奨されています。外部ファイルの読み込みにはwp_enqueue_style関数、wp_enqueue_script関数を呼び出すアクションフックを作成します。 wp_head関数でCSSとJSを読み込む 下記のようにfunctions ...
WordPressでは、JavaScriptファイルへのパスをテンプレートファイルに直接記入しなくても、wp_head()やwp_footer()から読み込むことができます。 読み込むことができますというか、そうしておかないとWordPressの公式テーマとしては登録できないようです。 wp_head()やwp ...
#if RUNTIME // unnecessary if we only compile in non-GECK mode. // Otherwise, GECK plugins do not need to know a function's code. //This defines a function without a ...
git submodule add --name .gitlab-ci-functions -b master -- https://github.com/microdevops-com/gitlab-ci-functions.git .gitlab-ci-functions P.S. You can directly fetch ...
For this article, I thought it would be beneficial to go back to some basics of shell scripting and look at how functions work. Most script writers probably eschew using functions because it's a bit ...
When writing PowerShell scripts, there always seems to come a time when a single script just isn't enough. Although it's important to keep your scripts as simple as possible, it's also important to ...