PluginProbe
FG Joomla to WordPress / trunk
FG Joomla to WordPress vtrunk
3.21.0 3.22.0 3.23.0 3.23.1 3.23.2 3.25.0 3.26.0 3.27.0 3.28.0 3.3.0 3.3.1 3.30.0 3.31.0 3.32.0 3.33.0 3.33.1 3.33.2 3.33.3 3.34.0 3.35.0 3.35.1 3.36.0 3.37.0 3.38.0 3.39.0 All 316 releases
fg-joomla-to-wordpress / fg-joomla-to-wordpress.php

fg-joomla-to-wordpress.php in FG Joomla to WordPress trunk, at fg-joomla-to-wordpress.php

77 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link https://wordpress.org/plugins/fg-joomla-to-wordpress/
11 * @since 2.0.0
12 * @package FG_Joomla_to_WordPress
13 *
14 * @wordpress-plugin
15 * Plugin Name: FG Joomla to WordPress
16 * Plugin URI: https://wordpress.org/plugins/fg-joomla-to-wordpress/
17 * Description: A plugin to migrate categories, posts, images and medias from Joomla to WordPress
18 * Version: 4.34.1
19 * Author: Frédéric GILLES
20 * Author URI: https://www.fredericgilles.net/
21 * License: GPLv2 or later
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: fg-joomla-to-wordpress
24 * Domain Path: /languages
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'WPINC' ) ) {
29 die;
30 }
31
32 define( 'FGJ2WP_PLUGIN_VERSION', '4.34.1' );
33
34 /**
35 * The code that runs during plugin activation.
36 * This action is documented in includes/class-fg-joomla-to-wordpress-activator.php
37 */
38 function activate_fg_joomla_to_wordpress() {
39 require_once plugin_dir_path( __FILE__ ) . 'includes/class-fg-joomla-to-wordpress-activator.php';
40 FG_Joomla_to_WordPress_Activator::activate();
41 }
42
43 /**
44 * The code that runs during plugin deactivation.
45 * This action is documented in includes/class-fg-joomla-to-wordpress-deactivator.php
46 */
47 function deactivate_fg_joomla_to_wordpress() {
48 require_once plugin_dir_path( __FILE__ ) . 'includes/class-fg-joomla-to-wordpress-deactivator.php';
49 FG_Joomla_to_WordPress_Deactivator::deactivate();
50 }
51
52 register_activation_hook( __FILE__, 'activate_fg_joomla_to_wordpress' );
53 register_deactivation_hook( __FILE__, 'deactivate_fg_joomla_to_wordpress' );
54
55 /**
56 * The core plugin class that is used to define internationalization,
57 * admin-specific hooks, and public-facing site hooks.
58 */
59 require plugin_dir_path( __FILE__ ) . 'includes/class-fg-joomla-to-wordpress.php';
60
61 /**
62 * Begins execution of the plugin.
63 *
64 * Since everything within the plugin is registered via hooks,
65 * then kicking off the plugin from this point in the file does
66 * not affect the page life cycle.
67 *
68 * @since 1.0.0
69 */
70 function run_fg_joomla_to_wordpress() {
71
72 $plugin = new FG_Joomla_to_WordPress();
73 $plugin->run();
74
75 }
76 add_action('init', 'run_fg_joomla_to_wordpress');
77