PHP Classes

WP Post: Classes to manipulate WordPress posts and images

Recommend this page to a friend!
  Info   View files Example   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2022-11-29 (5 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 41 All time: 10,625 This week: 190Up
Version License PHP version Categories
wp-post 1.0.0MIT/X Consortium ...5PHP 5, Graphics, Content management, B...
Description 

Author

This package provides classes to manipulate WordPress posts and images.

It provides classes that call WordPress built-in functions to perform actions with posts and images.

Currently, it can:

- Create new post

- Get post URL by post identifier

- Submit an image to WordPress from the uploaded file

- Submit an image to WordPress from an image URL

- Get WordPress image URL by identifier

Innovation Award
PHP Programming Innovation award nominee
November 2022
Number 6
WordPress is a popular content management system written in PHP, often used to create blogs.

WordPress code is, in great part, made of code written using global functions.

This package provides a object-oriented wrapper to access functionality of WordPress that manipulates posts and images.

This way, it can please developers that prefer to write code to access WordPress content using classes of objects.

Manuel Lemos
Picture of Chun-Sheng, Li
  Performance   Level  
Name: Chun-Sheng, Li <contact>
Classes: 20 packages by
Country: Taiwan Taiwan
Age: 29
All time rank: 25346 in Taiwan Taiwan
Week rank: 5 Up1 in Taiwan Taiwan Up
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

Details

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.

  • 
    
  • 
    

Usage

  • using ssh to login your VPS or shared hosting server.
  • 
    
  • 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.
  Files folder image Files  
File Role Description
Files folder imagesrc (1 file, 1 directory)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file main.php Example Example script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
Files folder imagepeter (1 directory)
  Accessible without login Plain text file autoloader.php Aux. Auxiliary script

  Files folder image Files  /  src  /  peter  
File Role Description
Files folder imageWordPress (3 files)

  Files folder image Files  /  src  /  peter  /  WordPress  
File Role Description
  Plain text file Post.php Class Class source
  Plain text file UploadImg.php Class Class source
  Plain text file Valid.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:41
This week:0
All time:10,625
This week:190Up