Skip to content

Add hook for other plugins/themes to disable WooPay #9938

Closed
@leonardola

Description

@leonardola

Description

Sometimes WooPay is not compatible with a plugin, theme or custom checkout flow. We need to allow other developer to disable WooPay conditionally during a request. This can be achieved by refactoring the code that checks if WooPay is enabled or not like here to it's own function and add a hook for plugins to change the value before the return.

This can be achieved currently by changing the return value of the WP Core get_option function but it's not as straight forward as doing that on a custom hook.

Additional context

Slack thread: p1734021926531319/1734016378.276979-slack-C02CCT3F1QA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions