Support » Plugin: Football Pool » Recalculate Scores

  • Hello. Thanks for the great plugin!

    Question.. I am trying to automate the match results process.
    I created a php script which will automatically update the match score in the database (‘pool_wp_matches’).
    Is there a way that I can extent my php script to automatically run the ‘recalculate scores’ process?

    Thanks in advance!

    https://wordpress.org/plugins/football-pool/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AntoineH

    (@antoineh)

    The calculation script is called using AJAX requests (see the admin.js for information on the variables that are passed and returned). So my guess is that you should be able to call these from a PHP script. One thing to bear in mind is the execution time for each step in the calculation; a (sub) step has to be completely finished before the next may start.

    But I haven’t done it myself, so maybe this is not possible at all.

    Thanks for your quick response.
    I had a look at the file, but it will take me a lot of time to understand the coding.
    I was hoping that I could somehow simulate the onclick button event ‘FootballPoolAdmin.calculate()’.
    Anyways, thanks again. I guess I just have to manually press the button evry morning. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recalculate Scores’ is closed to new replies.