gpnf_should_load_child_entries_from_session

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter whether child entries should be loaded from the Nested Forms session.

Usage

Applied globally

add_filter( 'gpnf_should_load_child_entries_from_session', 'my_custom_function' );

Applied to specific form

add_filter( 'gpnf_should_load_child_entries_from_session_FORMID', 'my_custom_function' );

Applied to specific field

add_filter( 'gpnf_should_load_child_entries_from_session_FORMID_FIELDID', 'my_custom_function' );

Parameters

$load_from_session bool

Should child entries be loaded from session?

$form array

Current parent form object.

$field object

Current Nested Form field object.

Since

  • 1.1.17 Hook added.