<identifier>_queue_lock_time
The Ninja Forms identifier queue lock time hook.
Description
Parameters (1)
- 0. $lock_duration (unknown)
- The lock duration.
Usage
- To run the hook, copy the example below.
- $lock_duration = apply_filters( '{$identifier}_queue_lock_time', $lock_duration );
- if ( !empty( $lock_duration ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the <identifier>_queue_lock_time callback
- function filter_identifier_queue_lock_time( $lock_duration ) {
- // make filter magic happen here...
- return $lock_duration;
- };
- // add the filter
- add_filter( "{$identifier}_queue_lock_time", 'filter_identifier_queue_lock_time', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( "{$identifier}_queue_lock_time", 'filter_identifier_queue_lock_time', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/Libraries/BackgroundProcessing/classes/wp-background-process.php
- $lock_duration = apply_filters( $this->identifier . '_queue_lock_time', $lock_duration );