Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/pronamic/wp-orbis-contacts/releases/download/v1.0.0-rc.2/orbis-contacts.1.0.0.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress plugin for Orbis that provides a shared contact layer for Orbis Persons and Orbis Organizations, including email addresses, phone numbers, social accounts and relations between contacts.
This plugin is based on the SolveBeam WordPress plugin boilerplate, see its README for the architecture and coding conventions.
Contact post types
A post type becomes a contact by supporting orbis-contact, Orbis Persons and Orbis Organizations register their post types like this:
\register_post_type(
'orbis_person',
[
'supports' => [
'title',
'editor',
'orbis-contact',
],
]
);
orbis_contactis a post type without posts of its own. A query fororbis_contactqueries all contact post types, which gives a contacts archive (/contacts/) and a "Contacts" admin menu with all contacts.- Every contact post gets a row in the
{prefix}orbis_contactstable (id,post_id,created_at,updated_at). - Contact details are stored in post meta, connections between contacts use Posts 2 Posts.
Requirements
- PHP 8.3+
- WordPress 7.1+
- Composer
- Node.js / npm
Installation
composer install
npm install
Development
npx wp-env start
| Mount path | Source |
|---|---|
wp-content/plugins/orbis-contacts-dev |
./ |
wp-content/plugins/orbis-contacts |
./build/orbis-contacts/ |
composer run phpcs
composer run phpstan
composer run build
composer run make-pot
Deploy
vendor/bin/dep deploy
License
GPL-2.0-or-later
Releases
2 releases. Each count is every asset in that release; expand a row for the breakdown.
Tag
Published
Assets
Downloads