<?php /** * The plugin bootstrap file * * This file is read by WordPress to generate the plugin information in the plugin * admin area. This file also includes all of the dependencies used by the plugin, * registers the activation and deactivation functions, and defines a function * that starts the plugin. * * @link http://example.com * @since 1.0.0 * * @wordpress-plugin * Plugin Name: Mover Marketing Form * Plugin URI: https://www.mover-marketing.com * Description: Wordpress moving contact form integrated with SmartMoving * Version: 1.0.0 * Author: Chenaniah Towner * Author URI: https://www.mover-marking.com/ * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: mover-marketing-form * Domain Path: /languages */ namespace Formine; // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } // We load Composer's autoload file require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php'; /** * The code that runs during plugin activation. * This action is documented in includes/class-plugin-name-activator.php */ function activate_formine() { utils\Activator::activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-plugin-name-deactivator.php */ function deactivate_formine() { utils\Deactivator::deactivate(); } register_activation_hook( __FILE__, '\Formine\activate_formine' ); register_deactivation_hook( __FILE__, '\Formine\deactivate_formine' ); /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_formine() { $plugin = new Main(); $plugin->run(); } run_formine();