gform_polls_cron

Description

Allows further actions to be performed after the cron job that gathers poll results runs.

Usage

add_action( 'gform_polls_cron', 'your_function_name' );

Parameters

There are no parameters.

Examples

add_action( 'gform_polls_cron', 'send_message_after_cron_runs' );
function send_message_after_cron_runs(){
	GFCommon::send_email( '[email protected]', '[email protected]','','','Polls Cron Job', 'The polls cron job has run.');
}

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in GFPolls::pre_init() in class-gf-polls.php