Skip to content

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>

Options

Notice type (optional)

  • info (default - blue)
  • warning (orange)
  • error (red)
  • success (green)

Notice dismissible (optional)

  • 1 (default - dismissible)
  • 0 (not dismissible)

Conditions relation (optional)

  • AND (default)
  • OR

Conditions children

  • 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, ...).

Clone this wiki locally