get_acpt_block_child_field

get_acpt_block_child_field

Fetch the field values nested in a block (only for Flexible fields).

Usage

get_acpt_block_child_field([
    'post_id' => 123,
    'box_name' => 'box',
    'field_name' => 'field',
    'parent_field_name' => 'parent_field',
    'index' => 0
]);

Parameters

  • post_id (integer) (Required if term_id, user_id and option_page are null) The post ID

  • term_id (integer) (Required if post_id, user_id and option_page are null) The term ID

  • user_id (integer) (Required if post_id, term_id and option_page are null) The user ID

  • option_page (string) (Required if post_id, term_id and user_id are null) The option page slug

  • box_name (string) (Required) The box name

  • parent_field_name (string) (Optional) The parent field name

  • index (integer) (Optional) The field numeric index

  • block_name (string) (Optional) The parent block name

  • block_index (integer) (Optional) The parent block numeric index,

Return

  • array

Last updated