Custom action not working in Woocommerce

It looks like your call to remove_action() has too many parameters.

https://codex.wordpress.org/Function_Reference/remove_action

Also, your call to add_action() is set to allow 0 parameters but your woocommerce_breadcrumb() definition expects one so you need to fix that mismatch.

https://codex.wordpress.org/Function_Reference/add_action

I haven’t run the code locally but those are the only issues I’m seeing. I hope that helps solve the problem.

SIDE NOTE: For my own peace of mind I like to give my functions unique names, rather than reusing the name of a function I’m overriding. Not all software developers wrap their definitions in function_exists() checks so I try to err on the side of caution there. WooCommerce does use functions_exists() checks so you’re safe with that approach here.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)