WordPress API “code”:”rest_no_route” with Custom Route

You’re using the wrong function. It’s register_rest_route() not register_rest_field().

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