gform_polls_cron

gform_polls_cron

DescriptionUsageParametersExamplesPlacementSource Code

Description
Allows further actions to be performed after the cron job that gathers poll results runs.
Usage
1add_action( 'gform_polls_cron', 'your_function_name' );
Parameters
There are no parameters.
Examples
1234add_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

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注