presslabs / toplytics

Plugin for displaying most viewed content using data from a Google Analytics account. Relieves the DB from writing every click.
https://www.presslabs.com/code/toplytics/
30 stars 9 forks source link

Update the Toplytics JSON upon updating plugin settings #146

Closed mariusveltan closed 4 years ago

mariusveltan commented 5 years ago

Run an update on the JSON data after the plugin settings have changed, in order to reflect the latest settings in the Toplytics data.

Usecases: Enabling "Include Featured Image in JSON Output" after previously being disabled; or changing the image size, "Featured image thumbnail size". Upon clicking "Save Changes" the Toplytics data should be updated in order to include the featured images, at the correct size, as configured in the plugin settings.