private static function is_locked($post_type) { $key = self::get_lock_name($post_type); return false !== get_transient($key); }