• When I installed the acf extension, the added trigger stopped working. The update trigger still works fine. Is this a known bug? Here is my code, but the UI generated notification acts the same
    add_action( ‘notification/trigger/registered’, function( $trigger ) {

    if ( ‘wordpress/post/added’ !== $trigger->get_slug() ) {
    return;
    }

    $content = ‘Quote Link: {post_permalink}’;

    notification( [
    ‘hash’ => uniqid(),
    ‘title’ => $trigger->get_name(),
    ‘trigger’ => $trigger,
    ‘carriers’ => [
    ’email’ => [
    ‘activated’ => true,
    ‘enabled’ => true,
    ‘subject’ => ‘New Quote has been created for: {acf {post_ID} client_name}’,
    ‘body’ => $content,
    ‘recipients’ => [
    [
    ‘type’ => ‘administrator’,
    ‘recipient’ => ‘{post_author_user_email}’,
    ],
    ],
    ],
    ],
    ‘enabled’ => true,
    ‘extras’ => [],
    ‘version’ => time(),
    ] );

    } );

    • This topic was modified 4 years, 8 months ago by deksia.
    • This topic was modified 4 years, 8 months ago by deksia.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘“added trigger” not working’ is closed to new replies.