public static function the_content($content) { //return $content; global $post; $data = get_post_meta($post->ID, '_tilda', true); if (isset($data['status']) && $data['status'] == 'on') { Tilda::$active_on_page = true; } else { Tilda::$active_on_page = false; } if (isset($data) && isset($data["status"]) && $data["status"] == 'on') { if (isset($data['current_page'])) { $page = $data['current_page']; } else { $page = self::get_local_page($data["page_id"], $data["project_id"], $post->ID); } if (!empty($page->html)) { return $page->html; } } return $content; }