';
esc_html_e( 'These plugins are known to have compatibiliy issues with WPML:', 'sitepress' );
echo '
';
foreach ( $icl_ncp_plugins2 as $incp ) {
echo '- ' . esc_html( $incp ) . '
';
}
echo '
';
echo '
';
}
}
}
}
// WCML versions before 3.8 are not fully compatible with WPML versions after 3.4
add_action( 'admin_head', 'wpml_wcml_3_8_is_required' );
function wpml_wcml_3_8_is_required() {
if ( defined( 'WCML_VERSION' ) ) {
$message_id = 'icl_wcml_3_8_is_required';
if ( version_compare( WCML_VERSION, '3.8', '<' ) ) {
$message = array(
'id' => $message_id,
'type' => 'icl-admin-message-warning',
'limit_to_page' => 'wpml-wcml',
'admin_notice' => true,
'classes' => array( 'error' ),
'text' => sprintf(
__( '%1$sIMPORTANT:%2$s You are using a version of WooCommerce Multilingual that is not fully compatible with the current WPML version. The %3$sproducts translation editor has been deactivated%4$s for this reason.%5$sPlease upgrade to %6$sWooCommerce Multilingual 3.8%7$s to restore the translation editor for products and use all the other functions.', 'sitepress' ),
'