PHPackages                             wp-content-framework/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. wp-content-framework/core

ActiveLibrary[Framework](/categories/framework)

wp-content-framework/core
=========================

Wordpress content framework

v1.0.37(5y ago)344.5kGPL-2.0+PHPPHP &gt;=5.6.0

Since Jan 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/wp-content-framework/core)[ Packagist](https://packagist.org/packages/wp-content-framework/core)[ Docs](https://github.com/wp-content-framework)[ Fund](https://paypal.me/technote0space)[ RSS](/packages/wp-content-framework-core/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (9)Versions (102)Used By (0)

WP Content Framework
====================

[](#wp-content-framework)

[![CI Status](https://github.com/wp-content-framework/core/workflows/CI/badge.svg)](https://github.com/wp-content-framework/core/actions)[![License: GPL v2+](https://camo.githubusercontent.com/ec6306119631a4bc812f4abc1b429674bd65410ae0ef38af01f43483fccc51ce/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322532422d626c75652e737667)](http://www.gnu.org/licenses/gpl-2.0.html)[![PHP: >=5.6](https://camo.githubusercontent.com/24e105d26965e27afba3dec59eea2ba78bee68047b1762c7be0ba98945ef774e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344352e362d6f72616e67652e737667)](http://php.net/)[![WordPress: >=3.9.3](https://camo.githubusercontent.com/073615bc0d72d97c86c2b3cb3fdbb1f0453a0de432bbe30a48aa8a0d61bec8cf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d253345253344332e392e332d627269676874677265656e2e737667)](https://wordpress.org/)

WordPressのプラグインやテーマ開発用のフレームワークです。

Table of Contents
-----------------

[](#table-of-contents)

Details- [要件](#%E8%A6%81%E4%BB%B6)
- [手順](#%E6%89%8B%E9%A0%86)
    - [プラグインからの利用](#%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%8B%E3%82%89%E3%81%AE%E5%88%A9%E7%94%A8)
    - [テーマからの利用](#%E3%83%86%E3%83%BC%E3%83%9E%E3%81%8B%E3%82%89%E3%81%AE%E5%88%A9%E7%94%A8)
    - [モジュール](#%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB)
    - [画面の追加](#%E7%94%BB%E9%9D%A2%E3%81%AE%E8%BF%BD%E5%8A%A0)
    - [API の追加](#api-%E3%81%AE%E8%BF%BD%E5%8A%A0)
    - [filter の追加](#filter-%E3%81%AE%E8%BF%BD%E5%8A%A0)
    - [cron の追加](#cron-%E3%81%AE%E8%BF%BD%E5%8A%A0)
    - [カスタム投稿タイプの追加](#%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E6%8A%95%E7%A8%BF%E3%82%BF%E3%82%A4%E3%83%97%E3%81%AE%E8%BF%BD%E5%8A%A0)
    - [テストの追加](#%E3%83%86%E3%82%B9%E3%83%88%E3%81%AE%E8%BF%BD%E5%8A%A0)
    - [コンフィグ](#%E3%82%B3%E3%83%B3%E3%83%95%E3%82%A3%E3%82%B0)
        - [設定](#%E8%A8%AD%E5%AE%9A)
        - [フィルタ](#%E3%83%95%E3%82%A3%E3%83%AB%E3%82%BF)
        - [DB](#db)
        - [権限](#%E6%A8%A9%E9%99%90)
    - [デフォルトの動作の上書き](#%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88%E3%81%AE%E5%8B%95%E4%BD%9C%E3%81%AE%E4%B8%8A%E6%9B%B8%E3%81%8D)
    - [基本設定](#%E5%9F%BA%E6%9C%AC%E8%A8%AD%E5%AE%9A)
    - [サンプルプラグイン](#%E3%82%B5%E3%83%B3%E3%83%97%E3%83%AB%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3)
- [Author](#author)

要件
==

[](#要件)

- PHP 5.6 以上
- WordPress 3.9.3 以上

手順
==

[](#手順)

プラグインからの利用
----------

[](#プラグインからの利用)

1. プラグインフォルダの作成 wp-content/plugins フォルダに プラグイン用のフォルダを作成 例：wp-content/plugins/example
2. プラグインファイルの作成 作成したプラグインフォルダに適当なPHPファイル (例：autoload.php) を作成 [標準プラグイン情報](https://wpdocs.osdn.jp/%E3%83%97%E3%83%A9%E3%82%B0%E3%82%A4%E3%83%B3%E3%81%AE%E4%BD%9C%E6%88%90#.E6.A8.99.E6.BA.96.E3.83.97.E3.83.A9.E3.82.B0.E3.82.A4.E3.83.B3.E6.83.85.E5.A0.B1)を参考にプラグインの情報を入力
3. このライブラリのインストール composer を使用してインストールします。 作成したプラグインフォルダで以下のコマンドを実行します。 `composer require wp-content-framework/core`
4. ライブラリの使用 作成したプラグインファイルにライブラリを使用する記述を追記します。 プラグインファイルはおおよそ以下のようになります。

```
