Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peter279k/wp-post
The simple helper class to post feed via WordPress functions
https://github.com/peter279k/wp-post
php56 php7 wordpress wordpress-api wordpress-api-library wordpress-api-wrapper
Last synced: 1 day ago
JSON representation
The simple helper class to post feed via WordPress functions
- Host: GitHub
- URL: https://github.com/peter279k/wp-post
- Owner: peter279k
- Created: 2017-09-10T07:44:57.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T07:55:21.000Z (about 7 years ago)
- Last Synced: 2024-10-12T12:21:07.342Z (about 1 month ago)
- Topics: php56, php7, wordpress, wordpress-api, wordpress-api-library, wordpress-api-wrapper
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wp-post
## Introduction
This helper class helps you accessing WordPress functions to post the feed easily.You can also check out the ```main.php``` and the PHP file which is in the ```src``` folder to know more details.
## The files introduction
You can see the ```main.php``` to know more details about using this classes.
- ```main.php```: The main functionality to call the calsses from ```src``` folder.
- ```Valid.php```: The class is to validate the post id and image id.
- ```Post.php``` is to post the feed via WordPress functions.
- ```UploadImg.php```: The class is to upload the images via WordPress functions.## Usage
- using ssh to login your VPS or shared hosting server.
- ```cd /path/to/your-wodpress-root-installation.```
- using the ```git clone https://github.com/peter279k/wp-post``` to clone this repo.
- In ```main.php```, modify the title and content on line 27.
- using the ```php main.php``` to test the posting feed and uploading images.