-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
64 lines (52 loc) · 1.94 KB
/
index.php
File metadata and controls
64 lines (52 loc) · 1.94 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
59
60
61
62
63
<?php
/**
* Plugin Name
*
* @package LocalhostToIP
* @author Saif Islam
* @copyright 2021 LocalhostToIP
* @license GPL-2.0-or-later
*
* @wordpress-plugin
* Plugin Name: localhost to IP
* Plugin URI: https://github.com/sopu175
* Description: This plugin change your site url and home url localhost to your ip or another url. You can share your localhost wordpress site via ip address or another url.
* Version: 1.0
* Requires at least: 5.2
* Requires PHP: 7.0
* Author: Saif Islam
* Author URI: https://www.facebook.com/saif2456/
* Text Domain: ltp
* License: GPL v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Domain Path: /languages
* {Plugin Name} is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* {Plugin Name} is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with {Plugin Name}. If not, see {URI to Plugin License}.
*/
global $wpdb;
function localhosttoIP_activation_hook()
{
global $wpdb;
$table_name = $wpdb->prefix . 'options';
}
register_activation_hook(__FILE__, "localhosttoIP_activation_hook");
function localhosttoIP_deactivation_hook()
{
}
register_deactivation_hook(__FILE__, "localhosttoIP_deactivation_hook");
function localhosttoIP_load_textdomain()
{
load_plugin_textdomain('ltp', false, dirname(__FILE__) . "/languages");
}
add_action("plugins_loaded", 'localhosttoIP_load_textdomain');
require_once plugin_dir_path(__FILE__) . "/form.php";