- The Base Class has add_action for the parent function.
- In the extends Class, the child function has the same name and use parent::
to make it clearly a child.
Do I still need to do add_action for the child in the extends Class?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you don’t need, every extended class has the same methods as it’s parent.