\DevOwl\RealCookieBanner\presetsUpdateNotice

Let the user know when a preset got updated through a plugin update.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
admin_notices()
No public properties found
DISMISS_PARAM
dismiss()
outputNotice()
needsUpdate()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

DISMISS_PARAM

DISMISS_PARAM ='rcb-dismiss-upgrade-notice'

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

Returns

string

admin_notices()

admin_notices()

Creates an admin notice when there is an update for preset'able entry.

dismiss()

dismiss(array  $needsUpdate)

Dismiss the notice by updating the preset version in database.

Parameters

array $needsUpdate

outputNotice()

outputNotice(array  $needsUpdate)

Output the notice.

Parameters

array $needsUpdate

needsUpdate()

needsUpdate()

Read all updates from database.

It uses a very cheap SQL on each page request.