ramphor / wordpress-posts-collection
Create posts and post types collection for WordPress
dev-master
2021-06-13 21:16 UTC
Requires
This package is auto-updated.
Last update: 2024-11-14 04:55:00 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();