Questions tagged [wp-api]

Provides an easy to use HTTP REST API to access your WordPress site’s data.

This project was born to create an easy-to-use, easy-to-understand and well-tested framework for creating these APIs, plus creating APIs for core.

This plugin provides an easy to use REST API, available via HTTP. Grab your site’s data in simple JSON format, including users, posts, taxonomies and more. Retrieving or updating data is as simple as sending a HTTP request.

Official website

235 questions
1
vote
1 answer

Can't get username using current_user with WP-API inside functions.php

I can't get WP-API to show the current logged-in username for some reason it just shows an id : 0 and some other data. functions.php add_action( 'plugins_loaded', 'get_user_info' ); function get_user_info(){ global $current_user; …
Raymond the Developer
  • 1,576
  • 5
  • 26
  • 57
1
vote
2 answers

How to reference an object that has a semi colon in

I'm using AngularJS with the WordPress Rest API. I am making a get request which returns an object. To get a featured image I have to use the '?embed' parameter which gives be another object called _embedded. The problem is the object I want that is…
Chris Townsend
  • 2,586
  • 2
  • 21
  • 41
1
vote
0 answers

How can I stop data from WP-API showing with HTML Tags?

I'm pulling in data from an external site using this code -