This WordPress plugin is part of the WP on Rails project, which limits a WP's responsibilities to managing content while entrusting a Rails application with serving public request and providing a basis for customizations.
The wp-relinquish
plugin —as the name implies— helps WordPress to "relinquish" content serving to an external system. In case of the WP on Rails architecture that is a Rails application with wp-connector installed.
The following plugins are needed or recommended when using wp-relinquish
to setup a WP on Rails architecture:
wp-relinquish
plugin, it displays only the admin bar which (which can then be picked up when previewing content that is to be served from Rails).This plugin provides the following functionality:
This plugin does not transfer content into the external system, it only helps sending notifications as webhook calls.
Please refer to the README of the wp-connector gem for a detailed explaination of why moving "content serving" out of WP is a good idea and how this is achieved.
The end-point url, where all webhook calls will be made to, can be set in two different ways.
By (1) defining a constant:
define( 'RELINQUISH_TO', 'http://example.com/wp-webhook-endpoint' );
Or by (2) adding a filter:
add_filter( 'wp_relinquish/relinqish_to', 'relinqish_to' );
function relinqish_to( $url ) {
return 'http://example.com/wp-webhook-endpoint';
}
Contributions are most welcome! You know the drill: create issue, fork, resolve issue, submit pull request.
(c) Copyright 2015, Hoppinger B.V.
MIT licensed, as found in the LICENSE file.