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