$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>database - Options of accessing wordpress data from mobile app|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

database - Options of accessing wordpress data from mobile app

matteradmin10PV0评论

There is an existing wordpress website and I would like to make native app(probably will do crossplatform native with React Native as I have experience with it) for it. So my question is: is there an API or plugin that exposes API via which I could securely access wordpress data(posts, widgets/their data and etc.)?

Main reason is for admin of the website to post data once and have it on both, app and website.

Making Hybrid/Web app is declined, as app should feel and look native and all these wordpress to mobile plugins that "convert" website are not an option.

Thank you in advance for any suggestions and/or links.

There is an existing wordpress website and I would like to make native app(probably will do crossplatform native with React Native as I have experience with it) for it. So my question is: is there an API or plugin that exposes API via which I could securely access wordpress data(posts, widgets/their data and etc.)?

Main reason is for admin of the website to post data once and have it on both, app and website.

Making Hybrid/Web app is declined, as app should feel and look native and all these wordpress to mobile plugins that "convert" website are not an option.

Thank you in advance for any suggestions and/or links.

Share Improve this question asked Apr 27, 2016 at 20:10 MindaugasMindaugas 1331 silver badge5 bronze badges 3
  • Have a look at the WP REST API – thebigtine Commented Apr 27, 2016 at 20:11
  • No problem. My pleasure – thebigtine Commented Apr 27, 2016 at 21:00
  • Did you get a solution to this. I also want to make a native mobile app (android / ios) to show content from a wordpress site. – lazers Commented Mar 12, 2019 at 7:27
Add a comment  | 

1 Answer 1

Reset to default -1

You can access WordPress data using WordPress REST API. If you want to know how to use the REST API from a React Native app, then give a read to this article.

Post a comment

comment list (0)

  1. No comments so far