-
Notifications
You must be signed in to change notification settings - Fork 43
Remote notices
Pierre edited this page Apr 1, 2025
·
2 revisions
<wpml-config>
<notices>
<notice type="info" dismissible="1" id="wcml-12345">
<conditions relation="AND">
<plugin>Foo</plugin>
<theme>Bar</theme>
</conditions>
<locations>
<screenId>plugins</screenId>
<screenId>toplevel_page_tm/menu/main</screenId><!-- WPML TM Dashboard -->
</locations>
<content><![CDATA[<p>This is a notice!</p>]]></content>
</notice>
</notices>
</wpml-config>-
info(default - blue) -
warning(orange) -
error(red) -
success(green)
-
1(default - dismissible) -
0(not dismissible)
-
AND(default) OR
-
plugin: The name of the plugin that should be active. -
theme: The name of theme that should be active (will also match for child themes) -
conditions: Another set of sub-conditions (plugin,theme,conditions, ...).