Initial commit
This commit is contained in:
commit
c8acf0604b
7 files changed
+1179
No files matched your search
+62
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Plugin Name: WL Update real estate properties
|
||||
* Description: Simple plugin for automatically update real estate properties via estateassistant.info API
|
||||
* Plugin URI: https://web-lab.solutions
|
||||
* Author: Ivan Filipov ( Web Lab )
|
||||
* Version: 1.0.1
|
||||
* Author URI: ttps://web-lab.solutions
|
||||
*
|
||||
* Text Domain: wl-urep
|
||||
*
|
||||
* @package wl-urep
|
||||
* @category external API
|
||||
*
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly.
|
||||
}
|
||||
|
||||
define( 'WL_UREP_PATH', plugin_dir_path( __FILE__ ) );
|
||||
define( 'WL_UREP_URL', plugin_dir_url( __FILE__ ) );
|
||||
|
||||
add_action('plugins_loaded', 'wlurep_load_plugin_textdomain');
|
||||
|
||||
if (!function_exists('wl_get_option')) {
|
||||
|
||||
function wl_get_option($name, $default = false) {
|
||||
$options = get_option('wl_options');
|
||||
if (isset($options[$name])) {
|
||||
return $options[$name];
|
||||
}
|
||||
|
||||
return $default;
|
||||
}
|
||||
|
||||
}
|
||||
if (!function_exists('wl_dump')) {
|
||||
|
||||
function wl_dump($var) {
|
||||
echo "<pre>";
|
||||
empty($var) ? var_dump($var) : print_r($var);
|
||||
echo "</pre>";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Load wlsrm textdomain.
|
||||
*
|
||||
* Load gettext translate for wlurep text domain.
|
||||
*
|
||||
* @since 1.0.0
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function wlurep_load_plugin_textdomain() {
|
||||
load_plugin_textdomain('wlurep');
|
||||
}
|
||||
|
||||
include 'Plugin.php';
|
||||
Reference in new issue
Block a user