Suggestion for Cookie timespan options in Timed Expiration Vote

Minor spelling fix:

‘options’ => array(
‘s’  => esc_attr__( ‘Second(es)‘, ‘tspoll’ ),
‘m’  => esc_attr__( ‘Minute(s)’, ‘tspoll’ ),
‘h’  => esc_attr__( ‘Hour(es)‘, ‘tspoll’ ),
‘d’  => esc_attr__( ‘Day(s)’, ‘tspoll’ ),
‘w’ => esc_attr__( ‘Week(s)’, ‘tspoll’ ),
‘y’  => esc_attr__( ‘Year(s)’, ‘tspoll’ ),
)

it should be second(s) and hour(s), no (es)

Hello, dear sirol81.

Thank you for contacting us and reporting your problem.

Edit our gallery file class-ts_poll.php. Add this code line 779

case ‘s’:
$tsp_time_with_seconds = (int) $tsp_select_number;
break;
case ‘m’:
$tsp_time_with_seconds = 60 * (int) $tsp_select_number;
break;

Everything needs to be changed. After that save the gallery file.

We are always happy to hear from you and solve all problems. We will develop the plugin with you. For us, the most important thing is that the plugin should be used by the developers themselves.

Have a good day!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer