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

Added support for WordPress built in functions when creating hooks #579

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

prabch
Copy link

@prabch prabch commented Sep 17, 2022

Currently a hook defined as below would throw an error under Php 8

$this->loader->add_filter( 'woocommerce_single_product_zoom_enabled', null, '__return_false' );

This change let someone set the hook component as null, thus making built in WordPress functions accessible within the plugin using $this->loader->add_action or $this->loader->add_filter methods

Currently a hook defined as below would throw an error under Php 8

$this->loader->add_filter( 'woocommerce_single_product_zoom_enabled', null, '__return_false' );

This change let someone set the hook component as null, thus making built in WordPress functions accessible within the plugin using $this->loader->add_action or $this->loader->add_filter methods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant