Skip to content

karappo/files-for-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karappo Common files for WordPress

  • WordPressのプロジェクトで共通で使えるヘルパーなどをまとめて、共通化する目的です。
  • common.php と helpers.php は、全プロジェクト共通、project-specific.php はプロジェクト毎に調整して使用してください。

Getting started

  1. WordPressのプロジェクトをセットアップした状態から、themeディレクトリ直下にサブモジュールとして追加
git submodule add [email protected]:karappo/files-for-wordpress.git wp/wp-content/themes/{project}/karappo-common
  1. {project}/functions.php で外部ファイルの読み込み設定を追加
require_once('karappo-common/common.php');
require_once('karappo-common/helpers.php');
  1. その他、各プロジェクトごとにカスタマイズが必要なものは、 project-specific.php にまとめているので、目を通して必要に応じて設定

About

WordPressでよくやる設定覚書

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published