Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

232
Vistas
How can I get the current user id in wordpress by making an ajax request from the website's front end (built in react on the same domain)

I have a wordpress website where react is used for all the front end components. I need to somehow fetch the currently logged-in user's id using the wordpress REST API via an ajax request. The request to the REST API needs to be authenticated in order to get this information but not sure how without the user's credentials in the first place.

Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can fetch a list of all the users using the Wordpress Rest api and then filter the result of a particular user based on your criteria.

Ref:- Fetch all users

Alternatively, You can fetch current user using this endpoint from the rest API provided by wordpress.

Ref:- Fetch current user

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda