DEV Community

Discussion on: Building a Gutenberg sidebar plugin Part 1: Registering the plugin with (oop) php

Collapse
 
bpincaro profile image
bpincaro

Hi, for starters, great series, congrats.
Just want to leave a little reminder. To access static properties we should use the "self::$property" or "ClassName::$property" call instead of trying to access it as non static this way "$this->property".

Collapse
 
vanaf1979 profile image
Stephan Nijman

Are you referring to the plugin slug property? You are right, accept the property should not be static actually. :p I will change it later! :) Thanks for letting me know!

Collapse
 
bpincaro profile image
bpincaro

Yup, the plugin slug property. No problem, you're welcome.