get_error_message(); $status = 'error'; } elseif (static::$response instanceof Logtivity_Response) { $message = static::$response->message; $status = 'success'; } if (empty($message) === false) { echo sprintf( '

%s

', $status, $message ); } } } add_action('init', [Logtivity_Register::class, 'register']);