Categorygithub.com/ssttevee/go-wordpress
modulepackage
0.0.0-20210712045522-ebc09983123c
Repository: https://github.com/ssttevee/go-wordpress.git
Documentation: pkg.go.dev

# Functions

GetAttachments gets all attachment data from the database.
GetCategories gets all category data from the database.
GetCategoryIdBySlug returns the id of the category that matches the given slug.
GetMenuItems gets the entire menu hierarchy It is also the most expensive operation in this package..
GetMenus gets the available menus from the database.
GetOption returns the string value of the WordPress option.
GetPosts gets all post data from the database.
GetTagIdBySlug returns the id of the category that matches the given slug.
GetTags gets all tag data from the database.
GetUsers gets all user data from the database.
New creates and returns a new WordPress connection.
NewContext returns a derived context containing the database connection.
QueryAttachments returns the ids of the attachments that match the query.
QueryPosts returns the ids of the posts that match the query.
QueryUsers returns the ids of the users that match the query.

# Constants

MenuItemTypeCustom is a custom or external link.
MenuItemTypePost is a link to a specific post or page.
MenuItemTypeTaxonomy is a link to a category or post tag.
PostStatusAutoDraft is an auto-saved post.
PostStatusDraft is a draft post.
PostStatusFuture is a post which has been published but it's publish date is in the future.
PostStatusInherit inherits its status from its parent.
PostStatusPending is a post which is awaiting approval.
PostStatusPrivate is a private post.
PostStatusPublish is a published post.
PostStatusTrash is a post that was trashed.
PostTypeAttachment is an attachment.
PostTypeNavMenuItem is a menu item.
PostTypePage is a page.
PostTypePost is a post.
PostTypeRevision is a revision.
TaxonomyCategory is for post categories.
TaxonomyNavMenu is for menu locations.
TaxonomyPostTag is for post tags.

# Variables

No description provided by the author

# Structs

Attachment represents a WordPress attachment.
Category represents a WordPress category.
MenuItem represents a WordPress menu item.
MenuLocation represents a WordPress menu location.
Object represents a WordPress 'post' object Not really a Post object, per se, since WP uses it for other things like pages and menu items.
ObjectQueryOptions represents the available parameters for querying Somewhat similar to WP's json plugin.
Post
Post represents a WordPress post.
Tag represents a WordPress tag.
Term represents a WordPress term.
TermQueryOptions represents the available parameters for querying.
User represents a WordPress user.
UserQueryOptions represents the available parameters for querying.
WordPress represents access to the WordPress database.

# Interfaces

No description provided by the author

# Type aliases

MenuItemList is used for sorting menu items.
MenuItemType represents menu item link types i.e.
No description provided by the author
PostStatus represents a WordPress post status Posts in WordPress can have one of a number of statuses.
PostType represents a WordPress post type There are five post types that are readily available to users or internally used by the WordPress installation by default: Post, Page, Attachment, Revision, Navigation Menu Item https://codex.wordpress.org/Post_Types.
Taxonomy represents term taxonomy names i.e.
URLList represents a list of urls This is just a helper to split incoming space-separated values from the database Used for pinged and to-ping urls.