Collaboration.php
3 weeks ago
CollaborationComment.php
3 weeks ago
CollaborationCommentSeen.php
3 weeks ago
CollaborationConnected.php
3 weeks ago
CollaborationSent.php
3 weeks ago
Collection.php
3 weeks ago
CollectionItem.php
3 weeks ago
Media.php
3 weeks ago
Page.php
3 weeks ago
Post.php
3 weeks ago
PostMeta.php
3 days ago
Reference.php
3 weeks ago
Term.php
3 weeks ago
TermMeta.php
3 weeks ago
TermTaxonomy.php
3 weeks ago
User.php
3 weeks ago
UserMeta.php
3 weeks ago
UserMeta.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Kirki\App\Models; |
| 4 | |
| 5 | defined('ABSPATH') || exit; |
| 6 | |
| 7 | use Kirki\App\Casts\AsSerialize; |
| 8 | use Kirki\Framework\Database\Query\Model; |
| 9 | |
| 10 | class UserMeta extends Model |
| 11 | { |
| 12 | protected $table = 'usermeta'; |
| 13 | |
| 14 | protected $primary_key = 'umeta_id'; |
| 15 | |
| 16 | protected $timestamps = false; |
| 17 | |
| 18 | protected $casts = [ |
| 19 | 'user_id' => 'integer', |
| 20 | 'meta_key' => AsSerialize::class, |
| 21 | ]; |
| 22 | |
| 23 | protected $fillable = [ |
| 24 | 'user_id', |
| 25 | 'meta_key', |
| 26 | 'meta_value', |
| 27 | ]; |
| 28 | } |
| 29 |