lib

Interfaces, Classes and Traits

License_Setting
Interface which represents a license key setting.
License
Interface to represent a plugin license.
License_API
Interface to represent an API wrapper for a license system.
License_Summary
Interface which represents a summary of the plugin license.
Licensed_Plugin
Extends the Plugin interface to add additional functions for licensed plugins.
Plugin
Basic interface implemented by all Barn2 plugins.
Plugin_Activation_Listener
Something which listens for plugin activation or deactivation events.
Registerable
An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Schedulable
Something that can be scheduled.
Service
Marker interface to denote a service.
Service_Provider
An object that provides services (instances of Barn2\WPC_Lib\Service).
Translatable
Something that can be translated by WordPress.
Notices
Extends the WPTRT Notices class to allow additional HTML in the admin notice.
Plugin_Promo
Provides functions to add the plugin promo to the plugin settings page in the WordPress admin.
Settings_Scripts
Registers the tooltip assets
WC_Settings_Additional_Field_Types
Additional field types for WooCommerce settings pages.
WC_Barn2_Plugin_Promo
Provides functions to add the plugin promo to the plugin settings page in the WordPress admin.
Admin_Links
Core admin functions for our plugins (e.g. adding the settings link).
Plugin_Updater
Handles plugin update checks for our EDD plugins.
License_Key_Setting
Handles the display and saving of the license key on the plugin settings page.
License_Notices
Handles the display of admin notices for the plugin license (e.g. license expired).
EDD_Licensing
This class provides an interface to the EDD Software Licensing API. API requests are handled on the Barn2 website by the EDD Software Licensing plugin.
License_Checker
A scheduled task to periodically check the status of the plugin license.
Plugin_License
License magic.
Premium_Plugin
Extends Simple_Plugin to add additional functions for premium plugins (i.e. with a license key).
Simple_Plugin
Basic implementation of the Plugin interface which stores core data about a WordPress plugin (ID, version number, etc). Data is passed as an array on construction.
Scheduled_Task
Abstract class which represents a single scheduled task using WordPress CRON.
Util
Utility functions for Barn2 plugins.

Search results