Hi,
Unfortunately this is not something that can be changed via a hook. So this means you’ll have to edit one of the plugin’s file. If you do an update in the future, you’ll have to redo the changes.
The changes must be done in “classes\class-football-pool-pool.php”. Look for the line that reads:
$points = $question['points'] == 0 ? __( 'variable', FOOTBALLPOOL_TEXT_DOMAIN ) : $question['points'];
Add the following code below that line:
if ( $question['score_date'] ) {
if ( $question['correct'] ) {
if ( $question['user_points'] != 0 ) {
$points_scored = $question['user_points'];
} else {
$points_scored = $points;
}
} else {
$points_scored = 0;
}
$points_scored = sprintf( ' (%s points scored)', $points_scored );
} else {
$points_scored = '';
}
(ofcourse you can change the text to whatever you want)
And then below the line that reads:
$output .= sprintf( '<span class="bonus points">%s %s'
, $points
, __( 'points', FOOTBALLPOOL_TEXT_DOMAIN )
);
Add this line:
$output .= $user_points;
I didn’t test this thoroughly, so I may have missed a certain scenario, but it shows how it should be done and should give you a start.