I am using the Wp-members plugin and I am trying to send my users to a certain URL when they click log out. The developer gave me the following code to input and I added it to the Actions and Filters area in Weaver Xtreme Plus. I am running latest WordPress and latest Weaver Xtreme. Appreciate any help as I really haven’t got a clue why this isn’t working. The developer says something else must be jumping into the process.
Your example uses backticks (`) instead of single quotation marks (‘).
But even fixing that doesn’t seem to make it work. I don’t understand exactly why this doesn’t work. I even tried this code as a direct addition to the theme’s functions.php, and it still doesn’t work.
BUT: use this plugin instead. It works, and provides more flexibility. (After activating the plugin, the settings are found on the dashboard Settings -> General menu.)