• Resolved marco978

    (@marco978)


    hello it seems that your plugin is not compatible with polylang. When I change the tab content in one language automatically it changes in the second language. Can you help me? Thanks in advance…

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • jpowersdev

    (@jpowersdev)

    Hi @marco978,

    I’m not sure how we can help with this. Our plugin just adds additional meta to a product. It’s up to Polylang to decide how they choose to translate that information. I think you need to reach out to them.

    If Polylang lets you translate things on the fly using a function, you could use the following filters:

    
    // Use the following filter instead of the_content
    add_filter( 'yikes_woo_use_the_content_filter', '__return_false' );
    
    // Manipulate the tab content somehow
    add_filter(
    	'yikes_woo_filter_main_tab_content',
    	function( $tab_content ) {
    		return $tab_content; // You could run some sort of "translate if available" function on this content.
    	},
    	10,
    	1
    );
    

    Let me know if that helps,
    Jon

Viewing 1 replies (of 1 total)
  • The topic ‘Custom product tabs and polylang’ is closed to new replies.