You can use the get_page() to get the current status and do something based on its output.
$id = YOUR_ID;
$p = get_page($id);
$status = $p->post_status;
if($status == 'publish'){
//Do something
}
You can use the get_page() to get the current status and do something based on its output.
$id = YOUR_ID;
$p = get_page($id);
$status = $p->post_status;
if($status == 'publish'){
//Do something
}