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().
Schedulable
Something that can be scheduled.
Service
Marker interface to denote a service.
Service_Provider
An object that provides services (instances of Barn2\WPT_Lib\Service).
Table_Data_Interface
An interface for table data.
Template_Loader
An object which can load PHP templates.
Translatable
Something that can be translated by WordPress.
Abstract_Plugin_Promo
Abstract class to handle the plugin promo sidebar used in most Barn2 plugins.
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
Settings_Util
Utility functions for the Plugin settings.
Html_Table_Cell
Represents a cell in a <code>Html_Table_Row</code>.
Html_Table_Row
Represents a row in a <code>Html_Data_Table</code>.
Html_Data_Table
Represents a HTML table. This class allows you to build a table by sequentially adding headings, rows, data, etc, and then outputting to either HTML, and array or JSON.
WP_Scoped_Hooks
Allows a temporary hook environment to be created for a given timeframe (i.e. scope), where any hooks added or removed will be recognised only during the specified scope. After the given scope, the original WordPress hook environment is restored to its previous state.
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.
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
Plugin_Promo
Provides functions to add the plugin promo to the relevant section of the WooCommerce settings page.
Settings_Util
Utility functions for WooCommerce settings.
Templates
A WooCommerce template loader.
Service_Container
A trait for a service container.

Search results