name ) { add_action( 'amem/module/' . $this->name . '/enabled', [$this, 'action_enabled'] ); add_action( 'amem/module/' . $this->name . '/disabled', [$this, 'action_disabled'] ); } } /** get readonly protected class variables */ public function __get($key) { if ( isset($this->$key) ) return $this->$key; return null; } public function action_enabled() {/* You can override method if needed */} public function action_disabled() {/* You can override method if needed */} }