WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] How to pass CLASS FUNCTION with arguments to add_action?

[Resolved] How to pass CLASS FUNCTION with arguments to add_action?

  • This works:

    add_action('hook', array($this, 'someFunction'))

    These not:

    add_action('hook', array($this, 'someFunction'), 'argument')
    add_action('hook', array($this, 'someFunction'), $priority, 'argument')

    Plz help me! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to pass CLASS FUNCTION with arguments to add_action?’ is closed to new replies.
Skip to toolbar