In a plugin, how to get entry status?
Is this Craft 2 or Craft 3?

There are a few of ways to get entries but basically you could do something like (Craft 3)

use craft\elements\Entry;

$entries = Entry::find()-&gt;status(null)-&gt;all();


To find all disabled entries.