Override Pluggable functions (3 posts)

  1. EL45
    Posted 5 years ago #


    This should be simple but i'm having no luck and searching has not come up with a result.

    I am trying to override the pluggable method wp_logout. I have disabled all other plugins, but it appears that the method is being called within pluggable.php before my plugin. Here is what I have in my plugin:


    Any suggestions? Any help is greatly appreciated.

  2. EL45
    Posted 5 years ago #

    On further investigation is appears that when logging out wp_logout() isn't even called at all. I temporarily added an output to the core implementation and it was never activated.

    The user is logged out though, how can this be?

  3. hotwebideas
    Posted 4 years ago #

    It appears that wp_logout() may have already executed in pluggable.php or your own pluggable version was delayed by a conditional. I would suggest adding another pluggable function <?php get_user_by($field, $value) ?> and see if it returns false. You can always add more conditional code in your plugin to test for this and isolate the cause.

Topic Closed

This topic has been closed to new replies.

About this Topic