-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrsd-wordpress.php
41 lines (34 loc) · 1.26 KB
/
rsd-wordpress.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
<?php
/**
* Research Software Directory
*
* @package RSD_WP
* @author Netherlands eScience Center
*
* @wordpress-plugin
* Plugin Name: Research Software Directory for WordPress
* Plugin URI: https://github.com/research-software-directory/rsd-wordpress
* Description: Displays projects and software information from the Research Software Directory API.
* Version: 1.1.1
* Author: Vincent Twigt (Mezzo Media), [email protected] (eScience Center)
* Author URI: https://www.esciencecenter.nl/
* Text domain: rsd-wordpress
* License: Apache-2.0
* License URI: https://www.apache.org/licenses/LICENSE-2.0
*/
namespace RSD;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// If the plugin was already loaded, do not load again.
if ( defined( 'RSD_WP_LOADED' ) ) {
return;
}
define( 'RSD_WP_LOADED', true );
define( 'RSD_WP__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'RSD_WP__PLUGIN_URL', plugin_dir_url( __FILE__ ) );
register_activation_hook( __FILE__, array( __NAMESPACE__ . '\Plugin', 'activate' ) );
register_deactivation_hook( __FILE__, array( __NAMESPACE__ . '\Plugin', 'deactivate' ) );
require_once RSD_WP__PLUGIN_DIR . 'includes/class-plugin.php';
add_action( 'init', array( __NAMESPACE__ . '\Plugin', 'init' ) );