Download the PHP package dh_man/dhead-wp without Composer
On this page you can find all versions of the php package dh_man/dhead-wp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dh_man/dhead-wp
More information about dh_man/dhead-wp
Files in dh_man/dhead-wp
Download dh_man/dhead-wp
More information about dh_man/dhead-wp
Files in dh_man/dhead-wp
Vendor dh_man
Package dhead-wp
Short Description A collection of classes to manage CPTs, Taxonomies, ACF Blocks, and Options Pages in WordPress.
License GPL-2.0-or-later
Package dhead-wp
Short Description A collection of classes to manage CPTs, Taxonomies, ACF Blocks, and Options Pages in WordPress.
License GPL-2.0-or-later
Please rate this library. Is it a good library?
Informations about the package dhead-wp
インストール手順
カスタム投稿タイプとフィールドの例
例えば「お知らせ」投稿タイプ(news)とカスタムフィールドを追加する場合:
このコードをテーマやプラグインの初期化時に実行すると、 「news」投稿タイプと「サブタイトル」「公開日」フィールドが追加されます。
オプションページの例
管理画面に「サイト設定」オプションページを追加する場合:
このコードを初期化時に実行すると、管理画面に「サイト設定」オプションページが追加され、 ロゴ画像やメールアドレスなどのフィールドを設定できます。
ブロック自動登録の使い方
例えば、resources/views/blocks ディレクトリ内の各ブロックを自動で読み込む場合:
ブロックファイルの例
resources/views/blocks/hero/block.php の内容例:
Bladeテンプレートファイルの例
上記の ->render_blade('blocks.hero') を使う場合、Sageテーマ等で resources/views/blocks/hero.blade.php を作成します。
例:
All versions of dhead-wp with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package dh_man/dhead-wp contains the following files
Loading the files please wait ...