Make my WordPress custom post types multilingual with Polylang

By adding the following filter to the functions.php or custom.php of the child theme, we have enabled custom post types to use Polylang.  Adding this filter to the functions.php of my child theme worked for me.

My post type was called services.

Polylang is a free multi-language WordPress plugin. You would use it when you have manual translations of each page in each language, and you want users to be able to click to switch between languages. For more on Multilingual WordPress web design, visit DigiMix or comment with your question.