Let X be a Hausdorff topological space, and let B1(X) denote the space of all real Baire-one functions defined on X. Let A be a nonempty subset of X endowed with the topology induced from X, and let F(A) be the set of functions A → R with a property F making F(A) a linear subspace of B1(A). We give a sufficient condition for the existence of a linear extension operator TA : F(A) → F(X), where F means to be piecewise continuous on a sequence of closed and G δ subsets of X and is denoted by P0. We show that TA restricted to bounded elements of F(A) endowed with the supremum norm is an isometry. As a consequence of our main theorem, we formulate the conclusion about existence of a linear extension operator for the classes of Baire-one-star and piecewise continuous functions.