Skip to content

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