send_scheduled_notifications( array( $data['id'] ), ! empty( $data['silent'] ) ); if ( is_wp_error( $result ) ) { ITSEC_Response::add_error( $result ); } elseif ( ! $result ) { ITSEC_Response::add_error( new WP_Error( 'itsec-debug-page-notification-center-send-failed', __( 'The server could not send the requested notification.', 'better-wp-security' ) ) ); } else { ITSEC_Response::set_response( $this->get_table() ); ITSEC_Response::set_success( true ); ITSEC_Response::add_message( __( 'Notification sent.', 'better-wp-security' ) ); } } /** * Render our data to the Debug Page. */ public function render() { ?>
get_last_sent( $slug ) ) : '–'; ?> | get_next_send_time( $slug ) ) ? date( 'Y-m-d H:i:s', $next ) : '–'; ?> | get_schedule( $slug ); ?> |