Last active
February 11, 2017 17:03
-
-
Save anthonybudd/a03c082adf517587aac0a7a732550d01 to your computer and use it in GitHub Desktop.
WP_Model class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Class Product extends WP_Model | |
{ | |
public $postType = 'product'; | |
public $attributes = [ | |
'color', | |
'weight', | |
'seller_id' | |
]; | |
// Optional | |
public $taxonomies = [ | |
'category', | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment