is_premium = false; $this->is_live = true; } /** * Check if plugin is an add-on (has parent). * * @since 1.0.6 * * @return bool */ function is_addon() { return isset( $this->parent_plugin_id ) && is_numeric( $this->parent_plugin_id ); } static function get_type() { return 'plugin'; } }