Support

Account

Home Forums General Issues ACF Repeater + JSON REST API

Unread

ACF Repeater + JSON REST API

  • I have a custom field called ‘facebook’ for the user registration and I am registering it to the Rest API using

    `register_rest_field( ‘user’, ‘facebook’, array(
    ‘get_callback’ => array( $this, ‘get_user_meta_field’ ),
    ‘update_callback’ => array( $this, ‘update_user_meta_field’ ),
    ‘schema’ => array(
    ‘description’ => __( ‘Author facebook link’ ),
    ‘type’ => ‘string’
    )
    ) );`
    How can I achieve this if facebook is a subfield of a repeater field called ‘socialMedia’. Any ideas would be great

Viewing 1 post (of 1 total)

The topic ‘ACF Repeater + JSON REST API’ is closed to new replies.