PHPackages                             dwalkr/wp-admin-utility - 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. [Admin Panels](/categories/admin)
4. /
5. dwalkr/wp-admin-utility

ActiveWordpress-plugin[Admin Panels](/categories/admin)

dwalkr/wp-admin-utility
=======================

Create admin pages and post types via declarative config files

v0.5.1(8y ago)413.0k2[1 issues](https://github.com/dwalkr/wp-admin-utility/issues)MITCSSPHP &gt;=5.4.0

Since May 28Pushed 8y ago2 watchersCompare

[ Source](https://github.com/dwalkr/wp-admin-utility)[ Packagist](https://packagist.org/packages/dwalkr/wp-admin-utility)[ Docs](https://github.com/dwalkr)[ RSS](/packages/dwalkr-wp-admin-utility/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (3)Versions (17)Used By (0)

WordPress Admin Page Utility
============================

[](#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
------------

[](#installation)

```
composer require dwalkr/wp-admin-utility

```

Basic Usage
-----------

[](#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 `after_setup_theme`, so just be sure you add your callback before that event (plugins can use `plugins_loaded` 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.

```
