private function add_cpt_support() { $cpt_support = get_option('elementor_cpt_support', ['page', 'post']); foreach ($cpt_support as $cpt_slug) { add_post_type_support($cpt_slug, 'elementor'); } }