WordPress.org

Ready to get started?Download WordPress

Forums

Overriding Pluggable FUnctions (3 posts)

  1. JelloBiafra
    Member
    Posted 5 years ago #

    I created a plugin that, among other actions, wants to override a function in pluggable.php. Seems straightforward.

    But when I try to install the plugin, it fails because my plugin is tring to override the function. I assumed that pluggable.php would be loaded AFTER plugins, but thsat appears to not be true.

    What am I missing?

    --
    JR

  2. BogdanUngureanu
    Member
    Posted 4 years ago #

    i have the same problem with wordpress 2.8.1 and 2.8.0...

    Can someone help me? It's a big bug and nobody resolved it?

  3. Mark-k
    Member
    Posted 4 years ago #

    For the activation phase you need to "protect" your function declaration.

    http://software.mywebspace.co.il/2009/12/21/overriding-pluggable-functions-in-a-plugin/

Topic Closed

This topic has been closed to new replies.

About this Topic