-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocalyayreview.php
35 lines (33 loc) · 1.09 KB
/
localyayreview.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
<?php
/*
* Plugin Name: Local Yay Review
* Plugin URI: https://example.com/plugins/the-basics/
* Description: Handle the basics with this plugin.
* Version: 1.0.0
* Requires at least: 5.2
* Requires PHP: 7.2
* Author: Quyet Tran Vu
* Author URI: https://author.example.com/
* 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
*/
if (!defined('ABSPATH')) {
die('We\'re sorry, but you can not directly access this file.');
}
define('LOCAL_REVIEW_PLUGIN_PATH', plugin_dir_path(__FILE__));
define('LOCAL_REVIEW_PLUGIN_URL', plugin_dir_url(__FILE__));
define('LOCAL_REVIEW_IS_DEVELOPMENT', true);
if (!wp_installing()) {
add_action(
'plugins_loaded',
function () {
include LOCAL_REVIEW_PLUGIN_PATH . 'includes/pages/local-review-admin.php';
}
);
add_action('init', function () {
register_post_type('yayhero');
});
}