Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers

How would you hook a static method 'do_this' of a class 'MyClass' to the init action?

add_action('init', array('MyClass', 'do_this');
add_action('do_this', 'MyAction', 'init');
add_action('init', array($this, 'do_this');
You can't hook static methods
add_action('init', MyAction->do_this());
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon