get_acpt_block
get_acpt_block
Fetch the block values nested in a Flexible field.
Usage
get_acpt_block([
'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 IDterm_id
(integer) (Required if post_id, user_id and option_page are null) The term IDuser_id
(integer) (Required if post_id, term_id and option_page are null) The user IDoption_page
(string) (Required if post_id, term_id and user_id are null) The option page slugbox_name
(string) (Required) The box nameparent_field_name
(string) (Required) The parent field nameblock_name
(string) (Required) The block name
Return
array
Last updated