ApplyRules

Description

Applies rules (filters) to PMs

Syntax

void ApplyRules ([bool $all_messages])



Parameter $all_messages

Expected type: Boolean
Description: Whether or not to apply the rules to all messages. If true, applies rules to all messages, even if they've been read. Otherwise applies rules only to unread messages. Defaults to false.


Notes

  • Only applies rules to unread messages unless all_messages is true
  • Rules are loaded into $context['rules'] by LoadRules
Advertisement: