PHPackages                             silvanus/wp-post-crud - 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. silvanus/wp-post-crud

AbandonedArchivedLibrary[Admin Panels](/categories/admin)

silvanus/wp-post-crud
=====================

Provides class class for handling CRUD operations on WP Posts

v1.1.0(6y ago)091MITPHP

Since Nov 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/stscoundrel/wp-post-crud)[ Packagist](https://packagist.org/packages/silvanus/wp-post-crud)[ RSS](/packages/silvanus-wp-post-crud/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

WP Post Crud
============

[](#wp-post-crud)

Provides CRUD class for handling WP Post Types in Actice Recordish way. Includes classes for detault WordPress types Post/Page and is extendable to include custom post types.

Aim is to abstract away awkward parts of creating, handling and deleting Posts programmatically in WordPress.

Installation
------------

[](#installation)

Via Composer:

`composer require silvanus/wp-post-crud`

To use autoloading mechanism, you must include `vendor/autoload.php` file in your code.

Issues &amp; Contributing
-------------------------

[](#issues--contributing)

If you find a bug or feel something is wrong, submit an issue or a pull request. Read the instructions first.

Usage
-----

[](#usage)

Post CRUD gives models that have create, read, update and delete methods. Main methods: `set_field()`, `get_field()`, `save()` and `delete()`

#### Creating new post

[](#creating-new-post)

```
