I have an Elementor page and I need to get the HTML and CSS output of it without the header and footer to use in an email plugin I am making. Is there a function in WordPress that can do this? I’ve read about WP_Post
but there is no method to get the content of it. WP_Post->content
(actually get_post($post)->content
) doesn’t return anything.