The Unlock the Listings Post Type code snippet allows for greater flexibility within a MyListing website by exposing this otherwise private post type. One example is the ability to target Listings with Elementor Pro’s ‘Display Conditions’ feature.
add_filter(
"elementor_pro/utils/get_public_post_types",
function ($post_types) {
$post_types["job_listing"] = "Job Listing";
return $post_types;
},
99
);