Error thrown
Call to undefined function register_rest_field()