• Please add support for Pushover. It’s similar to Pushbullet but much better. I prefer Pushover because it supported cross-platforms better than Pushbullet, and easy to use API for development, such as running bash scripts on servers. They already provide excellent code snippets for many other languages: PHP, JavaScript, Perl, Ruby, etc…

    Here’s example code, it’s not mine but took it off their website:

    <?php
    curl_setopt_array($ch = curl_init(), array(
    CURLOPT_URL => "https://api.pushover.net/1/messages.json",
    CURLOPT_POSTFIELDS => array(
    "token" => "APP_TOKEN",
    "user" => "USER_KEY",
    "message" => "hello world",
    ),
    CURLOPT_SAFE_UPLOAD => true,
    CURLOPT_RETURNTRANSFER => true,
    ));
    curl_exec($ch);
    curl_close($ch);
    ?>

    • This topic was modified 7 years, 11 months ago by firestrife.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author gioni

    (@gioni)

    Yes it will be implemented one day. As a quick solution the cerber_notify_sent hook can be used to send a message via Pushover API. This hook fires after a notification email has been successfully sent by the plugin.

    add_action('cerber_notify_sent', function ($body = '', $params = array()) {
    	// Here you can use:
    	// $body - text of email
    	// $params['subject'] - subject of email
    	// $params['IP'] - remote IP address
    });

    https://wpcerber.com/wordpress-security-hooks/

Viewing 1 replies (of 1 total)

The topic ‘Pushover Support’ is closed to new replies.