wp_logout function not executed

I also tested the code on a local sandbox WP and it worked as expected. As Howdy_McGee commented this is probably a conflict with 3rd party code.

If disabling theme and plugins is not an option, you can try changing the priority of the actions – i.e. the third parameter to add_action().

By default priority is 10, but if you give it a lower number it will be executed earlier – possibly before 3rd party actions.

techhipbettruvabetnorabahisbahis forumutaraftarium24edueduseduedueduedueduedusedusedus