lib

Interfaces, Classes and Traits

Conditional
An object which is loaded conditionally.
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().
Rest_Server
A REST server is the main entry point for a REST system. Registers the routes etc.
Route
Represents a REST route accessible via the REST API.
Schedulable
Something that can be scheduled.
Service
Marker interface to denote a service.
Service_Provider
An object that provides services (instances of Barn2\WPS_Lib\Service).
Template_Loader
An object which can load PHP templates.
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_Barn2_Plugin_Promo
Provides functions to add the plugin promo to the plugin settings page in the WordPress admin.
CSS_Util
Utility functions for building CSS.
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.
Base_Route
Abstract class for REST routes.
Base_Server
Abstract REST server.
Scheduled_Task
Abstract class which represents a single scheduled task using WordPress CRON.
Util
Utility functions for Barn2 plugins.
Custom_Settings_Fields
Additional field types for WooCommerce settings pages.
Navigation
Adds support for new WooCommerce navigation
Settings_Util
Utility functions for WooCommerce settings.
Templates
A WooCommerce template loader.
Service_Container
A trait for a service container.

Search results