License_Notices implements Registerable
Handles the display of admin notices for the plugin license (e.g. license expired).
Tags
Interfaces, Classes and Traits
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Table of Contents
- DISABLED = 'disabled'
- EXPIRED = 'expired'
- FIRST_ACTIVATION = 'first_activation'
- SITE_MOVED = 'site_moved'
- $plugin : Licensable_Plugin
- __construct() : mixed
- add_notices() : mixed
- ajax_dismiss_notice() : mixed
- cleanup_transients() : mixed
- disabled_license_notice() : mixed
- expired_license_notice() : mixed
- first_activation_notice() : mixed
- load_scripts() : mixed
- register() : void
- Register this object with WordPress.
- site_moved_notice() : mixed
- dismiss_notice() : mixed
- get_notice_dismissed_transient_name() : mixed
- is_notice_dismissed() : mixed
- maybe_add_notice() : mixed
Constants
DISABLED
public
mixed
DISABLED
= 'disabled'
EXPIRED
public
mixed
EXPIRED
= 'expired'
FIRST_ACTIVATION
public
mixed
FIRST_ACTIVATION
= 'first_activation'
SITE_MOVED
public
mixed
SITE_MOVED
= 'site_moved'
Properties
$plugin
private
Licensable_Plugin
$plugin
The plugin to handle notices for.
Methods
__construct()
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
Return values
mixed —add_notices()
public
add_notices() : mixed
Return values
mixed —ajax_dismiss_notice()
public
ajax_dismiss_notice() : mixed
Return values
mixed —cleanup_transients()
public
cleanup_transients() : mixed
Return values
mixed —disabled_license_notice()
public
disabled_license_notice() : mixed
Return values
mixed —expired_license_notice()
public
expired_license_notice() : mixed
Return values
mixed —first_activation_notice()
public
first_activation_notice() : mixed
Return values
mixed —load_scripts()
public
load_scripts() : mixed
Return values
mixed —register()
Register this object with WordPress.
public
register() : void
Return values
void —site_moved_notice()
public
site_moved_notice() : mixed
Return values
mixed —dismiss_notice()
private
dismiss_notice(mixed $notice_type) : mixed
Parameters
- $notice_type : mixed
Return values
mixed —get_notice_dismissed_transient_name()
private
get_notice_dismissed_transient_name(mixed $notice_type) : mixed
Parameters
- $notice_type : mixed
Return values
mixed —is_notice_dismissed()
private
is_notice_dismissed(mixed $notice_type) : mixed
Parameters
- $notice_type : mixed
Return values
mixed —maybe_add_notice()
private
maybe_add_notice(mixed $notice_type, mixed $notice_callback) : mixed
Parameters
- $notice_type : mixed
- $notice_callback : mixed