Admin Notice

Arguments

Key

Default

Description

content

null

Notice Content

title

null

Notice Title

type

success

succcess / info / warning / error / updated / update-nag

times

1

No of times to show this notice

screens

array()

array of screen ids to render notice only in those screens

users

array()

array of user ids to render notice only for those users

large

false

Render notice in large layout

alt

false

if set to true then it renders notice in alternate site for the given notice type

inline

false

if set to true then WordPress will not move this notice to top of the page

dismissible

true

if set to true then it appends a clone button to notice

Note : For Each Notice Type WPOnion Builtin Function To Render It Quickly

  • Success : wponion_success_admin_notice

  • Info : wponion_info_admin_notice

  • Warning : wponion_warning_admin_notice

  • Error : wponion_error_admin_notice

  • Upgrade-Nag : wponion_upgrade_admin_notice

Demo

Basic Config

Success

Info

Warning

Error

Upgrade

‚Äč