Skip to content

wolfkang/wporm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP ORM

Simple ORM framework for WordPress

$param = new DP_Like(array(
	'user_id' => get_current_user_id(),
	'post_id' => $_POST['pid']
	));
$like = WP_ORM::get($like);
if (empty($like)) {
	$like->item_type = $_POST['item_type'];
	WP_ORM::insert($like);
} else {
	$like->datetime = $_POST['item_type'];
	WP_ORM::update($like);
}

About

Simple ORM framework for WordPress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%