LogoLogo
WordPress.orgExtensionsSupport
Version 9
Version 9
  • Notification – Custom Notifications and Alerts for WordPress
  • Updating to v9
  • Known issues
  • πŸ€Έβ€β™€οΈ User guide
    • Update broke my site
    • How Notification plugin works
    • Who can use this plugin
    • How to create Notifications
    • Troubleshooting
    • Advanced
      • How to escape { character
      • Background processing
      • How to setup different FROM address for different Notifications
      • Custom Post Type support
      • Disable upselling
      • How to send HTML Emails
  • πŸ”§Developer
    • General
      • Plugin loading chain
      • Runtime
      • Extension possibilities
      • Creating an extension
      • Customizations
      • Bundling Notification plugin
      • White label mode
    • Notifications
      • Suppressing the Notification
      • JSON synchronization
      • Programmatic Notifications
    • Triggers
      • List of all default Triggers
      • Custom Trigger
      • Enable support for non-public Custom Post Type
      • Adding Merge Tags to existing Triggers
    • Carriers
      • Custom Carrier
      • Adding custom fields to Carrier form
      • Suppressing the Carrier
    • Recipients
      • Custom Recipient
    • Snippets
      • General
        • Automatic Trigger testing
        • Allow other roles to edit Notifications
        • Programmatic Notification with manual Trigger
        • Background Processing filter
      • Triggers
        • Post
        • User
      • Integations
        • WP All Import
        • MemberPress
  • 🧩Extensions
    • Installation
    • Planned extensions
    • 3rd Party Extensions
    • Custom Fields
      • v2.2
      • v1.4
      • v1.3
    • Conditionals
    • Email Attachments
    • Push
    • Scheduled Triggers
    • Slack
    • Twilio
    • Webhooks
Powered by GitBook
On this page
  • Date comparisons
  • Is before/after hour
  • Is day of week
  • Is month

Was this helpful?

  1. Extensions

Conditionals

Documentation for version 2.1 or later

Previousv1.3NextEmail Attachments

Last updated 6 months ago

Was this helpful?

Date comparisons

The merge tag and value fields can be any ISO-standardized date-time format

Is before/after hour

With this comparison you can check if the date is before or after an hour during the day, using a 24-hour format.

Ie. the date with time 2:12 pm will produce the following results:

  • <after hour> 14 = βœ…

  • <after hour> 13 = βœ…

  • <before hour> 14 = ❌

  • <before hour> 15 = βœ…

Is day of week

You can check whether the date is a specific day of the week using numbers 1-7, where:

  • Monday - 1

  • Tuesday- 2

  • Wednesday - 3

  • Thursday - 4

  • Friday - 5

  • Saturday - 6

  • Sunday - 7

You can use multiple values here. If you'd like to check if a date is Monday or the weekend, you'd set the value to: 1,6,7.

Is month

Similarly to "Is day of week", you can check if a date is a specific month using numbers 1-12, where:

  • January - 1

  • February 2

  • March - 3

  • April - 4

  • May - 5

  • June - 6

  • July - 7

  • August - 8

  • September - 9

  • October - 10

  • November - 11

  • December - 12

You can use multiple values here. If you'd like to check if a date is the last quarter of the year, you'd set the value to: 10,11,12.

🧩
Download this extension
Example of valid date times