Tag Archives: register

Modify WordPress REST routes with register rest field – Learn from Tutorial

Modify WordPress REST routes with register rest field Getting Started The register_rest_field function is a PHP function that allows you to add extra fields to any registered endpoint (posts, pages, custom post types, terms, users, etc). The function takes three parameters: register_rest_field( $object_type, $attribute, $args ); Enter fullscreen mode Exit fullscreen mode The $object_type parameter…

Read More