Home Forums General Issues REST API getting layout id


REST API getting layout id

  • Im using the following code to get all the layout fields:

    function expose_ACF_fields( $object ) {
        $ID = $object['id'];
        return get_fields($ID);

    Is is possible to get the field-attributes of the object, like width, height and ID and adding this to the REST API output?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.