if CPT content is empty then

I need to be able to do something if the content is empty in a CPT. This works for standard WP posts using the following:

if($post->post_content=="") {

//Do something if there is content is empty  

} else {

//Do something if there is content is NOT empty

}  

How can I amend this to refer to a CPT as well as a standard post?

Can someone point me in the right direction?

Read more here: if CPT content is empty then

Leave a Reply

Your email address will not be published. Required fields are marked *