Title: Expanded Statistics Functionality
Last modified: August 13, 2019

---

# Expanded Statistics Functionality

 *  [thegeniusss](https://wordpress.org/support/users/thegeniusss/)
 * (@thegeniusss)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/expanded-statistics-functionality/)
 * Is there any way to expand the functionality of the statistics plug-in, in a 
   similar way to how the functions.php file allows for expanded functionality on
   the locator plug-in itself?
 * I would like to store the relevant AJAX data with the ZIP code searches so that
   each data point has it’s own column in the database (radius, custom meta info,
   etc.)—as well as the returned results (JSON response data).
 * That way it can be exported and sorted for reporting purposes.
 * Thanks in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fexpanded-statistics-functionality%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * (@tijmensmit)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/expanded-statistics-functionality/#post-11830327)
 * This is untested, but if you look at the code in the wpsl_create_statistics_tables
   function, then you can copy that and modify it to your needs to add additional
   fields, but this code should only run once from the functions.php to alter the
   table structure.
 * In the wpsl-statistics-function.php you see the wpsl_store_search action, you
   will have to add a custom one to add the radius and custom meta info to the new
   database fields.
 * Also, the forum here is only for support for the WP Store Locator plugin itself.
   If in the future you have questions about the add-ons, then please open an ticket
   [here](https://wpstorelocator.co/support/).

Viewing 1 replies (of 1 total)

The topic ‘Expanded Statistics Functionality’ is closed to new replies.

 * ![](https://ps.w.org/wp-store-locator/assets/icon-256x256.jpg?rev=1007784)
 * [WP Store Locator](https://wordpress.org/plugins/wp-store-locator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-store-locator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-store-locator/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-store-locator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-store-locator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-store-locator/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [json](https://wordpress.org/support/topic-tag/json/)
 * [reporting](https://wordpress.org/support/topic-tag/reporting/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tijmen Smit](https://wordpress.org/support/users/tijmensmit/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/expanded-statistics-functionality/#post-11830327)
 * Status: not resolved