plugin_setting moved outsite hook definition to avoid a bug