pluginever / wc-serial-numbers

The best WordPress Plugin to sell license keys, redeem cards and other secret numbers!
11 stars 12 forks source link

Duplicate action found which is calling the same callback method #412

Closed kawsarahmedr closed 2 months ago

kawsarahmedr commented 3 months ago

Describe the bug Inside the Orders class, There are duplicate add_action() found.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Plugin root directory'
  2. Then src->Orders class
  3. Scroll down to 'constructor magic method'
  4. See the duplicate action

add_action( 'woocommerce_order_status_completed', array( __CLASS__, 'handle_order_status_changed' ) );

Expected behavior There should be a single add_action

Screenshots

image