Skip to content

IPP Emails - remove hooks from constructors #7266

Open
@marcinbot

Description

@marcinbot

Description

See base PR: #7249

We need to move the hooks from all class constructors to init_hooks and then call that method whenever the class is instantiated (or whenever we need the hooks to be attached, separately from instantiation).

The goal of this is to remove the side effects from constructors and allow us to instantiate classes freely.

Acceptance criteria

CC @Automattic/pulsar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions