Skip to content

FrankyCode/flutter-wordpress-api

Repository files navigation

Flutter + Wordpress

This Project is created with the idea How to use Wordpres API as a Backend for the Flutter APP.

  • Create Model for Posts
  • Visualize Posts
  • Create Plugin for Custom Endpoints/Routes
  • Create Model for Pages
  • Create Model for Media
  • Create Model for Users
  • Show Media in Posts
  • Login/Register Users
  • Created Posts
  • Update Posts
  • Delete Posts
  • Create Documentation of how this project was created

Custom Plugin Wordpress

For the next versions is necesary install the Custom Plugin, because I'm use custom endpoints for consume the API. This plugin is very basic and of course is not perfect but I created with my little bit experience in PHP and I'm very happy with the result.

How to Use?

  • 1º Download the plugin for Gist
  • 2º Go to your folder htdocs\wp-content\plugins inside in your Wordpress
  • 3º Create a folder for contain the plugin for example wl-test
  • 4º Copy inside this folder the file wl-api.php
  • 5º Go to dashboard > Plugins > Installed Plugins > Custom Api > Activate
  • 6º Done ^_^

Now you can use the custom Routes/endpoints for consume the data for example posts. Be carefull if you use this plugin in productions because if you need to ovewrite or changes the file, you needed desactivate first before to changes.

Documentation of WordPress API

Flutter

Flutter Packages

Tools

Articles for Flutter

RegExpression

  • Get Images in pages -> ^(src=\")+(png|jpg|gif)

About

How to use Wordpress API in Flutter?

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages