Extend GiveWP
Customizes the Give donation plugin to render custom content to the donation page.
by Robert A. Gadon · github.com/rgadon107/extend-give-wp · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/rgadon107/extend-give-wp/archive/refs/heads/master.zipPurpose
This plugin extends the GiveWP donation plugin by:
(1) setting an option in the WordPress database to store and retrieve the featured image post ID displayed in the Give donation form;
(2) registering custom functions to the GiveWP plugin to render additional labels, content blocks, and a captioned featured image; and
(3) registering extend-give-wp with the Custom module of the central-hub must-use plugin to flush the rewrite rules on plugin status change ( e.g. activation, deactivation, uninstall );
This plugin's structure is modeled on the Sandbox-Workspace plugin, which is also available from the KnowtheCode.io code repository on GitHub.com.
Application
The plugin is currently in use on the Cornerstone Chorale & Brass website.
It's also under version control in the 'extend-give-wp' repository on
Github.com.
Install Dependencies with Composer, the PHP Package Manager
A composer.json file is included in the plugin root directory. Composer adds several development dependencies to add the WordPress coding standards to this plugin.
To activate Composer:
-
From the Terminal command line, change directories to the
/pluginsdirectory in your WordPress install. -
Open the repository on Github.com and either clone the repository directly into the
/pluginsdirectory, or download the plugin as a*.ziparchive, and upload and activate the plugin with the WordPress plugin installer. -
From the Terminal command line, change directories to
extend-give-wp. -
On the command line, type
composer install. Composer will install all dependencies in the plugin/vendordirectory, and add acomposer.lockfile to lock down the installed packages. -
To update Composer packages, change directories to
extend-give-wp, and type 'composer update' on the command line. Composer will check for any package installs, updates, and removals.
Contributions
All feedback, bug reports, and pull requests are welcome.