Save up to 50% off during Black Friday!

fg_entryautomation_disable_task_skipping

Description

This filter allows you to disable the automatic task skipping that is on by default, when disabled anything related to a task will still run even if there are no entries that match the task’s configured search criteria rather than being skipped entirely:

Usage

Base filter usage

PHP
add_filter( 'fg_entryautomation_disable_task_skipping', 'my_function', 10, 2 );

You can target a specific form ID by appending it to the hook name:

PHP
add_filter( 'fg_entryautomation_disable_task_skipping_12', 'my_function', 10, 2 );

You can target a specific form and task ID by appending them both to the hook name:

PHP
add_filter( 'fg_entryautomation_disable_task_skipping_12_25', 'my_function', 10, 2 );

Parameters

  • $disable_task_skipping bool
    Whether task skipping should be disabled, defaults to false.
  • $task Task
    The current automation Task object.

Examples

This example will disable task skipping across all forms and tasks.

PHP
add_filter( 'fg_entryautomation_disable_task_skipping', '__return_true' );

This example will disable task skipping for a specific form ID.

PHP
add_filter( 'fg_entryautomation_disable_task_skipping_12', '__return_true' );

This example will disable task skipping for a specific form and task ID.

PHP
add_filter( 'fg_entryautomation_disable_task_skipping_12_25', '__return_true' );

Since

This filter was added in Entry Automation 1.3.6