I need to automatically sync custom posts for the Polylang plugin. How should I edit the code that syncs regular posts?
Code is below:
function auto_tr