Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/benjaminmedia/wp-contenthub-editor

The WordPress plugin for integrating ContentHub
https://github.com/benjaminmedia/wp-contenthub-editor

wordpress

Last synced: about 1 month ago
JSON representation

The WordPress plugin for integrating ContentHub

Awesome Lists containing this project

README

        

# Bonnier - ContentHub Editor Plugin

This plugin enables your WordPress site to integrate with the Bonnier ContentHub and edit content.

### Requirements

- WordPress 4.7.2 or higher
- ACF PRO 5.x
- PHP 5.6 or higher

### Installation/Configuration

Install through composer:

``` bash
composer require bonnier/wp-contenthub-editor
```

### Hooks

##### Slug change
Triggers when the composite slug is changed
``` php
add_action(WpComposite::SLUG_CHANGE_HOOK, function($postId, $oldLink, $newLink){
// Do your magic here
}, 10, 3);
```
Please note that the links provided are the absolute links and not just post links