Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fire an action when order limits are active #56

Open
stevegrunwell opened this issue Oct 1, 2020 · 1 comment
Open

Fire an action when order limits are active #56

stevegrunwell opened this issue Oct 1, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@stevegrunwell
Copy link
Contributor

When OrderLimiter::disable_ordering() is called, an action should be fired to let other plugins get in on the action.

/**
 * Fires when ordering has been disabled.
 *
 * @param \Nexcess\LimitOrders\OrderLimiter $limiter The order limiter instance.
 */
do_action( 'limit_orders_disable_ordering', $this );
@stevegrunwell stevegrunwell added enhancement New feature or request good first issue Good for newcomers labels Oct 1, 2020
@stevegrunwell
Copy link
Contributor Author

It may also make sense to tie our default disabling actions to this hook, which would make it easier for store owners to say "actually, don't disable if X conditions are met".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant