Repository navigation
Expand file tree
/
Copy pathprc-block-forms.php
More file actions
58 lines (50 loc) · 1.55 KB
/
Copy pathprc-block-forms.php
File metadata and controls
58 lines (50 loc) · 1.55 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
48
49
50
51
52
53
54
55
56
57
58
<?php
/**
* PRC Block Forms
*
* @package PRC_Block_Forms
* @author Seth Rubenstein
* @copyright 2026 Pew Research Center
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: PRC Block Forms
* Plugin URI: https://github.com/pewresearch/prc-platform
* Description: Forms management for the PRC Platform: reusable Forms CPT, form blocks, response logging, REST submission handlers, and the Synced Form block.
* Version: 1.0.0
* Requires at least: 6.7
* Requires PHP: 8.2
* Author: Seth Rubenstein
* Author URI: https://pewresearch.org
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: prc-block-forms
* Requires Plugins: prc-shared
*/
declare(strict_types=1);
namespace PRC\Platform\Block_Forms;
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'DEFAULT_TECHNICAL_CONTACT' ) ) {
define( 'DEFAULT_TECHNICAL_CONTACT', 'webdev@pewresearch.org' );
}
define( 'PRC_BLOCK_FORMS_FILE', __FILE__ );
define( 'PRC_BLOCK_FORMS_DIR', __DIR__ );
define( 'PRC_BLOCK_FORMS_VERSION', '1.0.0' );
require plugin_dir_path( __FILE__ ) . 'includes/utils.php';
/**
* The core plugin class that defines the hooks that initialize the various components.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-plugin.php';
/**
* Begins execution of the plugin.
*/
function run_prc_block_forms(): void {
$plugin = new Plugin();
$plugin->run();
}
run_prc_block_forms();