Do you think it could be that way?
if ( function_exists('bcn_display') && !is_front_page() ) {
add_filter('the_title', 'breadcrumbs_wpml_title' );
bcn_display();
remove_filter('the_title', 'breadcrumbs_wpml_title' );
}
function breadcrumbs_wpml_title($title, $id){
if ( defined('ICL_LANGUAGE_CODE') && function_exists('icl_object_id')) {
$page = get_page_by_title( $title);
$current_id = icl_object_id( $page->ID, get_post_type( $page->ID ), true, ICL_LANGUAGE_CODE );
$pagecurrentlang = get_post($current_id);
return $pagecurrentlang->post_title;
}else{
return $title;
}
}
It works for me and does not interfere with the plugin files
I change linie 25 in main.php to
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) && ( -1 !== version_compare( get_plugin_data( WP_PLUGIN_DIR.'/woocommerce/woocommerce.php' ), '3.0.0','>=' ) ) ) {
and it’s working
-
This reply was modified 8 years, 10 months ago by djsidor.
-
This reply was modified 8 years, 10 months ago by djsidor.