Skip to content

UserMeta Model

Wraps the WordPress usermeta table for community-focused metadata access.

Table

  • Table: usermeta
  • Primary key: umeta_id
  • Schema ownership: WordPress core table. FluentCommunity exposes it through UserMeta, but schema ownership stays with WordPress.
  • Extends: Model

Attributes

ColumnTypeNullableDefaultDescription
user_idintegerYesWordPress user ID associated with the row.
meta_keystringYesMeta Key stored for this record.
meta_valuestringYesMeta Value stored for this record.

Relationships

MethodTypeTargetNotes
user()belongsToUserSignature:

Scopes

ScopeParametersPurpose
ByKey$query, $keyBy Key scope declared on the model.
ByUser$query, $userIdBy User scope declared on the model.

Key Methods

MethodDescription
No additional public methods are documented for this model.

Usage Examples

php
use FluentCommunity\App\Models\UserMeta;

$records = UserMeta::query()
    ->byKey('example')
    ->limit(10)
    ->get();

$first = UserMeta::query()->first();

FluentCommunity developer documentation