/*
Plugin Name: WPML String Translation
Plugin URI: https://wpml.org/
Description: Adds theme and plugins localization capabilities to WPML | Documentation | WPML 3.2 release notes
Author: OnTheGoSystems
Author URI: http://www.onthegosystems.com/
Version: 2.3.9
Plugin Slug: wpml-string-translation
*/
if ( defined( 'WPML_ST_VERSION' ) ) {
return;
}
/** @var array $bundle */
$bundle = json_decode( file_get_contents( dirname( __FILE__ ) . '/wpml-dependencies.json' ), true );
if ( defined( 'ICL_SITEPRESS_VERSION' ) && is_array( $bundle ) ) {
$sp_version_stripped = ICL_SITEPRESS_VERSION;
$dev_or_beta_pos = strpos( ICL_SITEPRESS_VERSION, '-' );
if ( $dev_or_beta_pos > 0 ) {
$sp_version_stripped = substr( ICL_SITEPRESS_VERSION, 0, $dev_or_beta_pos );
}
if ( version_compare( $sp_version_stripped, $bundle[ 'sitepress-multilingual-cms' ], '<' ) ) {
return;
}
}
define( 'WPML_ST_VERSION', '2.3.9' );
// Do not uncomment the following line!
// If you need to use this constant, use it in the wp-config.php file
//define( 'WPML_PT_VERSION_DEV', '2.2.3-dev' );
define( 'WPML_ST_PATH', dirname( __FILE__ ) );
$autoloader_dir = WPML_ST_PATH . '/embedded';
if ( version_compare( PHP_VERSION, '5.3.0' ) >= 0 ) {
$autoloader = $autoloader_dir . '/autoload.php';
} else {
$autoloader = $autoloader_dir . '/autoload_52.php';
}
require_once $autoloader;
require WPML_ST_PATH . '/embedded/wpml/commons/src/dependencies/class-wpml-dependencies.php';
function wpml_st_core_loaded() {
global $wpdb;
new WPML_ST_TM_Jobs( $wpdb );
}
function load_wpml_st_basics() {
global $WPML_String_Translation, $wpdb, $wpml_st_string_factory, $sitepress;
$wpml_st_string_factory = new WPML_ST_String_Factory( $wpdb );
require WPML_ST_PATH . '/inc/functions-load.php';
require WPML_ST_PATH . '/inc/wpml-string-translation.class.php';
require WPML_ST_PATH . '/inc/constants.php';
$WPML_String_Translation = new WPML_String_Translation( $sitepress,
$wpml_st_string_factory );
$WPML_String_Translation->set_basic_hooks();
require WPML_ST_PATH . '/inc/package-translation/wpml-package-translation.php';
add_action( 'wpml_loaded', 'wpml_st_setup_label_menu_hooks', 10, 0 );
add_action( 'wpml_loaded', 'wpml_st_core_loaded', 10 );
}
function wpml_st_verify_wpml() {
$verifier = new WPML_ST_Verify_Dependencies();
$wpml_version = defined( 'ICL_SITEPRESS_VERSION' ) ? ICL_SITEPRESS_VERSION : false;
$verifier->verify_wpml( $wpml_version );
}
add_action( 'wpml_before_init', 'load_wpml_st_basics' );
add_action( 'init', 'wpml_st_verify_wpml' );
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/restaurantesmza/public_html/wp-content/plugins/wpml-string-translation/plugin.php:80) in /home/restaurantesmza/public_html/wp-content/plugins/horizon/horizon.php on line 151
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/restaurantesmza/public_html/wp-content/plugins/wpml-string-translation/plugin.php:80) in /home/restaurantesmza/public_html/wp-content/plugins/horizon/horizon.php on line 151
Post New Review