Clanbite

interface Team_Data_Store

CRUD for a single team (cp_team by default).

interface

Full name
Kernowdev\Clanbite\Extensions\Teams\Team_Data_Store

Methods

  • create() Create a new team post and set $team->set_id() to the new ID.
  • delete() Trash or permanently delete the team post.
  • read() Load a team by post ID, or null if the post is missing or not a cp_team.
  • update() Persist post fields and meta for an existing team.

Defined in inc/extensions/teams/interface-team-data-store.php