Skip Navigation

Open

Topic Tags: Compatibility

Overview of the issue

When buying a course in a secondary language, you are redirected to the default course during the checkout process.

Workaround

Please, make a full backup of your site before proceeding.

  1. Open /wp-content/plugins/learnpress/inc/lp-core-functions.php.
  2. Look for this method:
    function learn_press_get_page_link( $key ) {
    	$page_id = LP()->settings->get( $key . '_page_id' );
    	$link    = '';
  3. And replace it  with:
    function learn_press_get_page_link( $key ) {
    	$page_id = LP()->settings->get( $key . '_page_id' );
    	$link    = '';
    	if ( function_exists( 'icl_object_id' ) ) {
    		$page_id = learn_press_get_page_id( $key );
    	}
    

Next steps to resolve this issue

The LearnPress team are in the process of making this plugin compatible with WPML, but we do not have a timeline for when this will be completed. If you would like to express your interest in this effort and help push it along, please let them know via the ThimPress Forum.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>