WpPost
class WpPost extends Model
Constants
POST_TYPE |
|
CREATED_AT |
Timestamps * |
UPDATED_AT |
|
Properties
protected | $table | Model Settings * | |
protected | $primaryKey | ||
protected | $guarded | ||
$hidden | |||
protected | $dates | ||
$appends | Appendable Attributes * |
Methods
Get Permalink by Traversal
Post Parent Relationship
Post Author Relationship
Post Children Relationship
Convert Eloquent Model to WP_Post Object
Get WpMeta Fields
Post Meta Relationship
Taxonomy Relationship
Attach Taxonomy Relationship
DeAttach Taxonomy Relationship
Get Post Content Formatted
Get Post Date Attribute
Get Post Modified Attribute
Model Callbacks - Set additional WP_POST dates
Details
at line 30
string
getPermalinkAttribute()
Get Permalink by Traversal
at line 46
HasOne
parent()
Post Parent Relationship
at line 54
BelongsTo
author()
Post Author Relationship
at line 62
HasMany
children()
Post Children Relationship
at line 70
WP_Post
toWpPost()
Convert Eloquent Model to WP_Post Object
at line 81
mixed
getMeta(string $meta_key, boolean $load_as_relations = false)
Get WpMeta Fields
at line 105
HasMany
meta()
Post Meta Relationship
at line 113
HasManyThrough
taxonomy()
Taxonomy Relationship
at line 128
bool
attachTaxonomy($taxonomy_id)
Attach Taxonomy Relationship
at line 145
bool
detachTaxonomy($taxonomy_id)
DeAttach Taxonomy Relationship
at line 160
mixed
getPostContentAttribute($value)
Get Post Content Formatted
at line 169
Carbon
getPostDateAttribute($value)
Get Post Date Attribute
at line 178
Carbon
getPostModifiedAttribute($value)
Get Post Modified Attribute
at line 185
static protected
boot()
Model Callbacks - Set additional WP_POST dates