-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.php
30 lines (25 loc) · 893 Bytes
/
init.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
<?php
/*
Plugin Name: Custom String instead of price
Plugin URI: https://github.com/devlifeX/custom-string-for-price-woocommerce
Description: Allows you to show a String instead of price, Also support for variable products
Version: 1.2.1
Author: Dariush vesal
Author URI: https://vesal.blog
Text Domain: dv-custom-string
*/
define('DV_SOON_DIR', dirname(__FILE__) . '/');
define('DV_SOON_URL', plugin_dir_url(__FILE__));
require DV_SOON_DIR . "base-class.php";
require DV_SOON_DIR . "soon-class.php";
require DV_SOON_DIR . "admin-class.php";
add_action('plugins_loaded', function () {
load_plugin_textdomain('dv-custom-string', false, dirname(plugin_basename(__FILE__)) . '/languages/');
});
if (class_exists('DV_Soon')) {
new DV_Soon([
'type' => 'include', // include - exclude
'product_ids' => [],
'message' => __('Soon', 'dv-custom-string')
]);
}