Overload private functions in $Wcms?
Posted: Mon May 08, 2023 5:49 pm
I'm working on a new theme. I need a mostly new renderPageNavMenuItem(), which is defined as a private function in the Wcms class.
I don't do much PHP OOP stuff. Understand it barely enough to be dangerous.
Can I overload renderPageNaveMenuItem() and if so, how?
If not, then I can take a shot at modifying my theme.php to locally define that, and the menu() that calls it.
I don't do much PHP OOP stuff. Understand it barely enough to be dangerous.
Can I overload renderPageNaveMenuItem() and if so, how?
If not, then I can take a shot at modifying my theme.php to locally define that, and the menu() that calls it.