SCF_Rest_Types_Endpoint


目录

Class SCF_Rest_Types_Endpoint

Methods

__construct

Initialize the class and register hooks.

is_valid_source

Validate source parameter.

request_has_permission

Checks whether the matched REST route permits the request.

filter_types_request

Filter post types requests for individual post type requests.

filter_post_type

Filter individual post type in the response.

get_source_post_types

Get post types for a specific source.

register_extra_fields

Register extra SCF fields for the post types endpoint.

get_scf_fields

Get SCF fields for a post type.

get_scf_post_id

Get the SCF internal post ID for a post type.

get_field_schema

Get the schema for the SCF fields.

register_parameters

Register the source parameter for the post types endpoint.

get_source_param_definition

Get the source parameter definition

add_parameter_to_endpoints

Add source parameter directly to the endpoints for proper documentation

add_collection_params

Add source parameter to the collection parameters for the types endpoint.

clean_types_response

Clean up null entries from the response


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