tp TouchPointWP Utilities Database - TenthPres/TouchPoint-WP GitHub Wiki

tp\TouchPointWP\Utilities\Database

Used for database actions that are relatively generic.


  • Full name: \tp\TouchPointWP\Utilities\Database
  • This class is an Abstract class

Methods

deletePostMetaByPrefix

Deleted all post meta for a given post that starts with a given prefix.

public static deletePostMetaByPrefix(int $postId, string $prefix): bool
  • This method is static. Parameters:
Parameter Type Description
$postId int
$prefix string