Skip to content

Commit

Permalink
Merge branch 'release/1.6.0' of github.com:pojome/elementor into rele…
Browse files Browse the repository at this point in the history
…ase/1.6.0
  • Loading branch information
KingYes committed Jul 26, 2017
2 parents 218eb7a + 3e288ed commit 67ec1da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions includes/compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ public static function init() {

return $tabs;
} );

// Copy elementor data while polylang creates a translation copy
add_filter( 'pll_copy_post_metas', [ __CLASS__, 'save_polylang_meta' ], 10 , 4 );
}

public static function save_polylang_meta( $keys, $sync, $from, $to ) {

Plugin::$instance->db->copy_elementor_meta( $from, $to );

return $keys;
}

/**
Expand Down

0 comments on commit 67ec1da

Please sign in to comment.