Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nadimtuhin/wp-utility

wordpress utility functions
https://github.com/nadimtuhin/wp-utility

Last synced: 25 days ago
JSON representation

wordpress utility functions

Awesome Lists containing this project

README

        

# ThemeXpert WpUtility

## Example

```php
require "vendor/autoload.php";

use ThemeXpert\WpUtility\Metabox;

class XBox extends Metabox{
public function render($post){
return view(__DIR__ . "/settings.php", array("name"=>"Tuhin"));
}

public function save($post_id){
echo "saving.."; die();
}
}

$box = new XBox("ps", "Page Sections", ["page_section"]);
```

## Installation
install with composer

```json
{
"require": {
"themexpert/wp-utility":"dev-master"
}
}
```