Acf Rest API Functions Global Functions


目录

acf_get_field_rest_schema()

Get the REST API schema for a given field.

acf_get_field_rest_links()

Get the REST API field links for a given field. The links are appended to the REST response under the _links property and provide API resource links to related objects. If a link is marked as 'embeddable', WordPress can load the resource in the main request under the_embedded property when the request contains the _embed URL parameter.

scf_rest_sanitize_user_sub_fields()

Replaces User subfield data with REST-safe values.

scf_rest_sanitize_user_data()

Replaces formatted User field data with REST-safe values based on the field definition.

scf_rest_format_standard_value()

Applies standard field formatting while keeping User values safe for REST output.

acf_format_value_for_rest()

Format a given field's value for output in the REST API.



版本号 #2
由 壳壳虫 创建于 2026-08-29 14:50:46 UTC
由 壳壳虫 更新于 2026-08-29 14:50:46 UTC