-
Notifications
You must be signed in to change notification settings - Fork 1
/
sa-coronavirus-banner.php
46 lines (36 loc) · 1.33 KB
/
sa-coronavirus-banner.php
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
<?php
/**
* Plugin Name: SA Coronavirus Banner
* Description: Options to add a banner of your choice to your WordPress site as stipulated by the South African Goverment.
* Version: 2.1.1
* Author: Robin Devitt
* Author URI : https://github.com/robindevitt/
* License: GNU General Public License v2.0
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: sa-coronavirus-banner
* Tags: South Africa, Corona Virus, COVID-19
* Tested up to: 5.9.1
* Stable tag: 5.0
*
* Make it easy for South African WordPress sites to add the Covid-19 banner as required by the South African government.
*
* You should have received a copy of the GNU General Public License
* along with South African Covid-19 Banner. If not, see
* https://www.gnu.org/licenses/gpl-2.0.html.
*/
// require
namespace SA\Covid19;
require_once 'includes/sa_covid_19.php';
/**
* Initialise the plugin.
*/
function init() {
define( 'SA_COVID19_VERSION', '2.0.3' );
define( 'SA_COVID19_DIR', plugin_dir_path( __FILE__ ) );
define( 'SA_COVID19_URL', plugin_dir_url( __FILE__ ) );
sa_covid_19();
}
add_action( 'plugins_loaded', 'SA\Covid19\init' );
add_action('upgrader_process_complete', 'SA\Covid19\init');
register_activation_hook( __FILE__, 'SA\Covid19\activation_hook' );
add_action( 'admin_notices', 'SA\Covid19\notice' );