예제 #1
0
function wp_sms_post_update($post_ID, $post_after, $post_before)
{
    if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
        return;
    } else {
        wp_sms_send_notification('A post has been updated: ' . $post_after->post_title, 'wp_sms_on_post_update');
    }
}
예제 #2
0
function detect_published_post($wp_sms_new_status = NULL, $wp_sms_old_status = NULL, $wp_sms_post_ID = NULL)
{
    if ('publish' == $wp_sms_new_status && 'publish' != $wp_sms_old_status) {
        wp_sms_send_notification('This new post has been published: ' . $wp_sms_post_ID->post_title, 'wp_sms_on_post_publish');
    }
}
function wp_sms_plugin_updated($a, $b, $c)
{
    if ($b['type'] == 'plugin' && $b['action'] == 'update') {
        wp_sms_send_notification('Plugin has been updated' . $c['destination_name'] . '', 'wp_sms_on_plugin_update');
    }
}
예제 #4
0
function wp_sms_theme_update($a, $b, $c)
{
    if ($b['type'] == 'theme' && $b['action'] == 'update') {
        wp_sms_send_notification('Theme has been updated: ' . $c['destination_name'], 'wp_sms_on_theme_update');
    }
}
function wp_sms_theme_install($a, $b, $c)
{
    if ($b['type'] == 'theme' && $b['action'] == 'install') {
        wp_sms_send_notification('Theme has been installed: ' . $c['destination_name'], 'wp_sms_on_theme_install');
    }
}
function wp_sms_plugin_install($a, $b, $c)
{
    if ($b['type'] == 'plugin' && $b['action'] == 'install') {
        wp_sms_send_notification('Plugin has been installed: ' . $c['destination_name'], 'wp_sms_on_plugin_install');
    }
}
예제 #7
0
 /**
  * detect_user_login function.
  *
  * @access public
  * @param mixed $wp_sms_new_user_logged_in
  * @return void
  */
 function detect_user_login($wp_sms_new_user_logged_in)
 {
     wp_sms_send_notification('User successfully logged in: ' . $wp_sms_new_user_logged_in, 'wp_sms_on_user_login');
 }