Is it possible to rewrite protected method like this in helpers?
class Fishpig_Wordpress_Helper_Filter extends Fishpig_Wordpress_Helper_Abstract
{
...
protected function _applyShortcodes(&$content, $object, $context) {
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityIs it possible to rewrite protected method like this in helpers?
class Fishpig_Wordpress_Helper_Filter extends Fishpig_Wordpress_Helper_Abstract
{
...
protected function _applyShortcodes(&$content, $object, $context) {
If you're creating a subclass of Fishpig_Wordpress_Helper_Filter, yes - the subclass can override a protected method http://php.net/manual/en/language.oop5.visibility.php