-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtootpress_notification.php
More file actions
47 lines (40 loc) · 1.06 KB
/
tootpress_notification.php
File metadata and controls
47 lines (40 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* Notifications
*
* @package TootPress
* @since 0.1
*/
// Security: Stops code execution if WordPress is not loaded
if (!defined('ABSPATH')) { exit; }
/**
* Create Error Message: Required API Options not maintained
*
* @since 0.1
*
* @return string Error Message
*/
function tootpress_error_message_required_api_options_missing() {
$message='<p>';
$message.='Information required to request Mastodon API are not available.';
$message.='<br/>';
$message.='Mastodon Instance, OAUTH Access Token, Account ID have to be added in Plugin Options.';
$message.='</p>';
return $message;
}
/**
* Create Error Message: Mastodon Instance and/or OAUTH Access Token not maintained
*
* @since 0.1
*
* @return string Error Message
*/
function tootpress_error_message_instance_andor_token_missing() {
$message='<p>';
$message.='Information required to retrieve Mastodon Account ID is not available.';
$message.='<br/>';
$message.='Mastodon Instance and/or OAUTH Access Token are missing in Plugin Options.';
$message.='</p>';
return $message;
}
?>