ramphor/wordpress-posts-collection

Create posts and post types collection for WordPress

dev-master 2021-06-13 21:16 UTC

This package is auto-updated.

Last update: 2023-01-14 00:47:33 UTC


README

Create posts and post types collection for WordPress

Install

composer require ramphor/wordpress-posts-collection

Setup

use Ramphor\Collection\CollectionManager;
use Ramphor\Collection\DB as CollectionDB;


Activation hook

register_activation_hook(__PLUGIN_FILE__, array(CollectionDB::class, 'setup'));

Main hooks plugins_loaded or after_setup_theme or any your favorite hook before wp hook

CollectionManager::getInstance();