2017 © Pedro Peláez
 

library mesh

package to programitcaily create content for WordPress

image

jarednova/mesh

package to programitcaily create content for WordPress

  • Monday, March 21, 2016
  • by jarednova
  • Repository
  • 16 Watchers
  • 11 Stars
  • 6,470 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 5 Forks
  • 3 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Mesh

Bootstrap content into a WordPress site, (*1)

Add a Post

/* functions.php */
$post = new Mesh\Post('Hello World', 'post');
// add content...
$post->set('post_content', 'This is your first WordPress post');
// add custom fields...
$post->set('my_foo', 'bar');
// "thumbnail" is a reserved key to add post thumbnails
$post->set_image('thumbnail', 'http://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/STS120LaunchHiRes-edit1.jpg/490px-STS120LaunchHiRes-edit1.jpg');

Add a User

/* functions.php */
$user = new Mesh\User('Jared Novack', 'subscriber');
// add content...
$user->set('description', 'Jared is cool');
// add custom fields...
$user->set('my_foo', 'bar');
// add images
$user->set_image('headshot', 'http://upload.wikimedia.org/wikipedia/commons/thumb/d/d6/STS120LaunchHiRes-edit1.jpg/490px-STS120LaunchHiRes-edit1.jpg');

Import JSON

See the sample data for an example of what this should look like., (*2)

$loader = new Mesh\JSON_Loader(__DIR__.'/../static/data/mesh-data.json');

WP-CLI

Load your JSON file:, (*3)

wp mesh load_json mesh.json

The Versions

21/03 2016

dev-fix-terms

dev-fix-terms http://upstatement.com

package to programitcaily create content for WordPress

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

content mesh bootstrapping

02/02 2016

dev-master

9999999-dev http://upstatement.com

package to programitcaily create content for WordPress

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

content mesh bootstrapping

02/02 2016

0.4

0.4.0.0 http://upstatement.com

package to programitcaily create content for WordPress

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

content mesh bootstrapping

20/01 2016

0.3

0.3.0.0 http://upstatement.com

package to programitcaily create content for WordPress

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

content mesh bootstrapping

19/01 2016

0.2

0.2.0.0 http://upstatement.com

package to programitcaily create content for WordPress

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

content mesh bootstrapping

18/12 2015

0.1

0.1.0.0 http://upstatement.com

package to programitcaily create content for WordPress

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

content mesh bootstrapping