Return a WP_REST_Response from an inner function (and not from the root callback)

Return a WP_REST_Response from an inner function (and not from the root callback)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)