Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter latinosamorir

    (@latinosamorir)

    On that note, I’d also like to show when a user has completed the prediction form for each group, is that possible?

    Plugin Author AntoineH

    (@antoineh)

    There is not a shortcode for this. If you want to make one, you can have a look at the class-football-pool-shortcodes.php file. The php-code to add a shortcode is not that complicated.

    The predictions for a user are in the pool_wp_predictions table. Count the rows for a given user_id.

    The time a prediction is made is not recorded in the plugin. So there is no way you can get it from the plugin’s data.
    But – just a thought – if there is a hook in the save action of the form (haven’t got the code at hand to check it at the moment), you could use that hook to save some data to the wp_users_meta table. This requires some knowledge of hooks in WP and the WP user object.

    Thread Starter latinosamorir

    (@latinosamorir)

    Thank you! Will try to create one and share.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Number of predictions per user shortcode’ is closed to new replies.