I’m struggling/banging head against wall.. to insert content into a flex content field using just PHP.
None of the methods seem to work (and are focussed on repeater fields anyway), can someone point my in the right direction with what I need for to be able to programatically add content to the following flex content layout
'59883f928cabc' => array(
'key' => '59883f928cabc',
'name' => 'some_flex_standard_text',
'sub_fields' => array(
'key' => 'field_5a61c76c93ec2',
'name' => 'standard_text',
'type' => 'wysiwyg',
'toolbar' => 'full',
Examples tried like this just won’t work!
add_sub_row( array('some_flex_standard_text', 0, 'standard_text'), 'test', $new_post_id );