License_Notices implements Registerable

Handles the display of admin notices for the plugin license (e.g. license expired).

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

version
1.2

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

Properties

$plugin

private Licensable_Plugin $plugin

The plugin to handle notices for.

Methods

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
Return values
mixed

Search results