WP Manifestindependent plugin directory
manifest / developer / wp-admin-utility

WordPress Admin Utility

Create admin pages and post types via declarative config files

by DJ Walker · github.com/dwalkr/wp-admin-utility

3stars
13kcomposer installs
2forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/dwalkr/wp-admin-utility/archive/refs/heads/master.zip

Also on Packagist as dwalkr/wp-admin-utility:

composer require dwalkr/wp-admin-utility

From the readme

WordPress Admin Page Utility wp-admin-utility installs as a plugin and provides an API for quickly setting up custom post types and options pages. Whereas other post type builders provide an admin interface for creating post types, this utility reads static configuration files to create post types via a declarative syntax. Installation Basic Usage The PageCreator singleton is used to parse configuration files. It is made available on a custom hook named adminutility-pagecreator-init. The hook is triggered on aftersetuptheme, so just be sure you add your callback before that event (plugins can use pluginsloaded and themes can just put their code directly in functions.php.) Use the addPostType method to create post types, and addSettingsPage to create options pages. Configuration Formats Configuration files can be in yaml, json, or php format. When passing a PHP file to PageCreator, the file should return the configuration as an associative array. Direct Array/Object Config Instead of having PageCreator parse a configuration file, you can pass an array or PHP object containing the configuration instead of the path to a file. Use the FROMARRAY and FROMOBJECT constants to tel

Read the full README on GitHub →

Releases

TagPublished
v0.5.1 Feb 26, 2018
v0.5.0 Dec 6, 2017
v0.4.2 Sep 15, 2017
v0.4.1 Jun 28, 2017
v0.4.0 May 19, 2017
v0.3.5 May 19, 2017
v0.3.4 May 19, 2017
v0.3.3 May 18, 2017
v0.3.2 May 10, 2017
v0.3.1 Apr 25, 2017
v0.3.0 Apr 13, 2017
v0.2.2 Oct 24, 2016
v0.2.1 Sep 11, 2016
v0.2.0 Aug 1, 2016
v0.1.0 Jun 1, 2016

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.