\DevOwl\RealProductManagerWpClient\viewAnnouncementView

Show announcement notices.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
setupConstants()
admin_notices()
getPool()
instance()
No public properties found
No constants found
img()
srcset()
dismissOnClickHandler()
No protected properties found
N/A
__construct()
$pool
N/A

Properties

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

Get the prefix of this package so we can utils package natively.

Returns

string

setupConstants()

setupConstants()

Make sure the RPM_WP_CLIENT constants are available.

admin_notices()

admin_notices()

Output parsed announcement.

getPool()

getPool()

Get pool instance.

dismissOnClickHandler()

dismissOnClickHandler(\DevOwl\RealProductManagerWpClient\announcement\Announcement  $announcement)

Dismiss-functionality is handled through a inline-onclick handler because we do not need to enqueue an extra script on each page.

Parameters

\DevOwl\RealProductManagerWpClient\announcement\Announcement $announcement