Hi @jazibzaman
It depends on how do you show the tab. You can always try to get the post object from the global post like this:
global $post;
$post_ID = $post->ID;
But if your tab doesn’t set the post object, that code won’t be working.
Could you please explain to me how this tab works?
Thanks!