tp TouchPointWP Utilities Database - TenthPres/TouchPoint-WP GitHub Wiki
tp\TouchPointWP\Utilities\Database
Used for database actions that are relatively generic.
- Class name: Database
- Namespace: \tp\TouchPointWP\Utilities
- This is an abstract class
Methods
deletePostMetaByPrefix
bool tp\TouchPointWP\Utilities\Database::deletePostMetaByPrefix(int postId, string prefix)
Deleted all post meta for a given post that starts with a given prefix.
- Visibility: public
- This method is static.
Arguments
- postId int* prefix string
Returns
- bool -
getPostContentWithShortcode
object[] tp\TouchPointWP\Utilities\Database::getPostContentWithShortcode(mixed shortcode)
Gets the post content for all posts that contain a particular shortcode.
- Visibility: public
- This method is static.
Arguments
- shortcode mixed -
TODO MULTI: does not update for all sites in the network.
Returns
- object[] -