realhomes-currency-switcher
Last commit date
admin
1 year ago
includes
1 year ago
languages
1 year ago
public
1 year ago
LICENSE.txt
1 year ago
README.txt
1 year ago
index.php
1 year ago
realhomes-currency-switcher.php
1 year ago
uninstall.php
1 year ago
realhomes-currency-switcher.php
76 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: RealHomes Currency Switcher |
| 4 | * Plugin URI: https://themeforest.net/item/real-homes-wordpress-real-estate-theme/5373914 |
| 5 | * Description: Provides multiple currencies support and currency switching for RealHomes theme. |
| 6 | * Version: 1.0.9 |
| 7 | * Tested up to: 6.6.0 |
| 8 | * Requires PHP: 7.4 |
| 9 | * Author: InspiryThemes |
| 10 | * Author URI: https://inspirythemes.com/ |
| 11 | * License: GPL-2.0+ |
| 12 | * License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 13 | * Text Domain: realhomes-currency-switcher |
| 14 | * Domain Path: /languages |
| 15 | * |
| 16 | * @since 1.0.0 |
| 17 | * @package realhomes-currency-switcher |
| 18 | */ |
| 19 | |
| 20 | // If this file is called directly, abort. |
| 21 | if ( ! defined( 'WPINC' ) ) { |
| 22 | die; |
| 23 | } |
| 24 | |
| 25 | // Currently plugin version. |
| 26 | define( 'REALHOMES_CURRENCY_SWITCHER_VERSION', get_plugin_data( __FILE__ )['Version'] ); |
| 27 | |
| 28 | // Plugin unique identifire. |
| 29 | define( 'REALHOMES_CURRENCY_SWITCHER_NAME', 'realhomes-currency-switcher' ); |
| 30 | |
| 31 | /** |
| 32 | * The code that runs during plugin activation. |
| 33 | * This action is documented in includes/class-realhomes-currency-switcher-activator.php |
| 34 | */ |
| 35 | function activate_realhomes_currency_switcher() { |
| 36 | require_once plugin_dir_path( __FILE__ ) . 'includes/class-realhomes-currency-switcher-activator.php'; |
| 37 | Realhomes_Currency_Switcher_Activator::activate(); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * The code that runs during plugin deactivation. |
| 42 | * This action is documented in includes/class-realhomes-currency-switcher-deactivator.php |
| 43 | */ |
| 44 | function deactivate_realhomes_currency_switcher() { |
| 45 | require_once plugin_dir_path( __FILE__ ) . 'includes/class-realhomes-currency-switcher-deactivator.php'; |
| 46 | Realhomes_Currency_Switcher_Deactivator::deactivate(); |
| 47 | } |
| 48 | |
| 49 | register_activation_hook( __FILE__, 'activate_realhomes_currency_switcher' ); |
| 50 | register_deactivation_hook( __FILE__, 'deactivate_realhomes_currency_switcher' ); |
| 51 | |
| 52 | /** |
| 53 | * The core plugin class that is used to define internationalization, |
| 54 | * admin-specific hooks, and public-facing site hooks. |
| 55 | */ |
| 56 | require plugin_dir_path( __FILE__ ) . 'includes/class-realhomes-currency-switcher.php'; |
| 57 | |
| 58 | /** |
| 59 | * Begins execution of the plugin. |
| 60 | * |
| 61 | * Since everything within the plugin is registered via hooks, |
| 62 | * then kicking off the plugin from this point in the file does |
| 63 | * not affect the page life cycle. |
| 64 | * |
| 65 | * @since 1.0.0 |
| 66 | */ |
| 67 | function run_realhomes_currency_switcher() { |
| 68 | |
| 69 | $plugin = new Realhomes_Currency_Switcher(); |
| 70 | $plugin->run(); |
| 71 | |
| 72 | } |
| 73 | |
| 74 | run_realhomes_currency_switcher(); |
| 75 | |
| 76 |