Code Examples for Implementing WordPress.com Connect
These examples require minor changes to get working. The full instructions for getting a PHP app running are on developer.wordpress.com.
These instructions assume you know how to run a website for your chosen framework: PHP (start a webserver), Node.js (run npm install), etc.
- Log in to WordPress.com
- Create a new WPCC application: developer.wordpress.com/apps/. You can change these settings at any time.
- Adjust the following values (in the proper config file) to match the ones in your WPCC application:
- Client ID
- Client Secret
- Login URL
- Redirect URL
- Start your server and log in.
- Profit!
Storing and using the access token is an exercise left for the developer.
| Demo | Language | Framework | Description | Author |
|---|---|---|---|---|
/php |
PHP | N/A | Auth via wp.com and token display | Automattic |
/node-express |
Javascript | Node.js Express | Auth via wp.com and token display | Automattic |
/python-flask |
Python | Flask | Auth via wp.com and token display | Automattic |
If you implement a framework we don't have, we'd love to include it in this project. Just submit a pull request.