-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsccw-current-weather.php
More file actions
28 lines (24 loc) · 869 Bytes
/
sccw-current-weather.php
File metadata and controls
28 lines (24 loc) · 869 Bytes
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
<?php
/*
* Plugin Name: Weather Report Plugin
* Plugin URI: ''
* Description: Display a weather report.
* Version: 1.0
* Requires at least: 6.9
* Requires PHP: 8.4
* Author: Sam Coppock
* Author URI: ''
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Update URI: https://example.com/my-plugin/
* Text Domain: my-basics-plugin
* Domain Path: /languages
* Requires Plugins docket-cache
*/
require_once plugin_dir_path(__FILE__) . 'includes/sccw-display-weather.php';
//Adds the 'sccw-weather' shortcode
sccw_Display_Weather_Plugin::init();
//Wrapper for 'sccw-weather' callback function
function sccw_get_weather( $atts ) : string {
return sccw_Display_Weather_Plugin::get_weather( $atts );
}