. * * This program incorporates work from the plugin Polylang * Copyright 2011-2019 Frédéric Demarle * Copyright 2021-2022 WP SYNTEX * * This program incorporates work from the plugin Sublanguage * Copyright 2015-2023 Maxime Schoeni */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } require_once( dirname( __FILE__ ) . '/vendor/autoload.php' ); /** * Currently plugin version. */ define( 'FALANG_VERSION', '1.3.61' ); define( 'FALANG_MIN_WP_VERSION', '4.7' ); define( 'FALANG_FILE', __FILE__ ); // this file define( 'FALANG_BASENAME', plugin_basename( FALANG_FILE ) ); // plugin name as known by WP define( 'FALANG_DIR', dirname( FALANG_FILE ) ); // our directory define( 'FALANG_ADMIN', FALANG_DIR . '/admin'); define( 'FALANG_INC', FALANG_DIR . '/includes'); define( 'FALANG_EXT', FALANG_DIR . '/ext'); define ('FALANG_ADMIN_URL', plugins_url('falang/admin')); /** * The code that runs during plugin activation. * This action is documented in includes/class-falang-activator.php */ function activate_falang() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-falang-activator.php'; Falang_Activator::activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-falang-deactivator.php */ function deactivate_falang() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-falang-deactivator.php'; Falang_Deactivator::deactivate(); } register_activation_hook( __FILE__, 'activate_falang' ); register_deactivation_hook( __FILE__, 'deactivate_falang' ); require_once ABSPATH . 'wp-admin/includes/plugin.php'; /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'includes/class-falang.php'; /** * The api class */ require plugin_dir_path( __FILE__ ) . 'includes/api.php'; /** * 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 */ function run_falang() { $plugin = new Falang(); $plugin->run(); } run_falang();