-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathplugin.php
41 lines (35 loc) · 872 Bytes
/
plugin.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
<?php
/**
* Plugin Name: Showcasy NFT
* Description: Showcase for yor NFT colelction. Add [nftcy_view] shortcode to a page
* Author: Victor Lerner
* Requires PHP: 7.2
* Text Domain: nftcy
* Domain Path: /lang
* Version: 1.0.1
*/
/* Define Plugin Constants */
defined('ABSPATH') || exit;
const NFTCY_TEMPLATE_DIR = __DIR__.'/templates';
const NFTCY_BASE_DIR = __DIR__;
const NFTCY_BASE_FILE = __FILE__;
const NFTCY_VER = '1.0.1';
const NFTCY_NFT_ADDUSER = 1;
/**
* Plugin Init
*/
require __DIR__.'/App/autoload.php';
/**
* Load the plugin text domain for translation.
*/
function nftcy_load_plugin_textdomain()
{
load_plugin_textdomain('nftcy', false,
dirname(plugin_basename(__FILE__)).'/lang/');
}
add_action('plugins_loaded', 'nftcy_load_plugin_textdomain');
function dd($var)
{
var_dump($var);
die;
}