-
Notifications
You must be signed in to change notification settings - Fork 1
/
gp-meetup-importer.php
48 lines (44 loc) · 1.35 KB
/
gp-meetup-importer.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
47
48
<?php
/**
* Plugin Name: GatherPress Meetup Importer
* Plugin URI: https://gatherpress.org/
* Description: Powering Communities with WordPress.
* Author: The GatherPress Community
* Author URI: https://gatherpress.org/
* Version: 0.0.1
* Requires PHP: 7.4
* Text Domain: gp-meetup-importer
* Domain Path: /languages
* License: GPLv2 or later (license.txt)
*
* This file serves as the main plugin file for GatherPress. It defines the plugin's basic information,
* constants, and initializes the plugin.
*
* @package GatherPress
*/
// Will refactor later. Just starting with some basic testing.
function gp_meetup_importer_sub_page( $sub_pages ) {
$sub_pages['import'] = array(
'name' => __( 'Import', 'gp-meetup-importer' ),
'priority' => 10,
'sections' => array(
'meetup_importer' => array(
'name' => __( 'Meetup Importer', 'gp-meetup-importer' ),
'description' => __( 'Import events from Meetup.com to GatherPress', 'gp-meetup-importer' ),
'options' => array(
'meetup_api_key' => array(
'labels' => array(
'name' => __( 'Meetup API key', 'gp-meetup-importer' ),
),
'field' => array(
'type' => 'text',
'size' => 'regular',
),
),
),
),
),
);
return $sub_pages;
}
add_filter( 'gatherpress_sub_pages', 'gp_meetup_importer_sub_page');