Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
183 lines (149 sloc) 2.7 KB

WordPress Objects

WordPressPost

Represents a post, page, or other registered custom post type in WordPress.

  • id
  • user
  • date (datetime)
  • date_modified (datetime)
  • slug
  • post_status
  • title
  • content
  • excerpt
  • link
  • comment_status
  • ping_status
  • terms (list of :class:`WordPressTerm`s)
  • terms_names (dict)
  • custom_fields (dict)
  • enclosure (dict)
  • password
  • post_format
  • thumbnail
  • sticky
  • post_type

WordPressPage

Derived from :class:`WordPressPost`, represents a WordPress page. Additional fields:

  • template
  • parent_id
  • parent_title
  • order (int)
  • post_type = 'page'

WordPressPostType

Metadata for registered WordPress post type.

  • name
  • label
  • labels (dict)
  • cap (dict)
  • hierarchical
  • menu_icon
  • menu_position
  • public
  • show_in_menu
  • taxonomies (list)
  • is_builtin
  • supports (list)

WordPressTaxonomy

Metadata for registered WordPress taxonomy.

  • name
  • label
  • labels (dict)
  • hierarchical
  • public
  • show_ui
  • cap (dict)
  • is_builtin
  • object_type (list)

WordPressTerm

Represents a term (e.g., tag or category) in a WordPress taxonomy.

  • id
  • group
  • taxonomy
  • taxonomy_id
  • name
  • slug
  • description
  • parent
  • count (int)

WordPressBlog

Represents a WordPress blog/site.

  • id
  • name
  • url
  • xmlrpc
  • is_admin (bool)

WordPressAuthor

Minimal representation of a WordPress post author.

  • id
  • user_login
  • display_name

WordPressUser

Basic representation of a WordPress user.

  • id
  • username
  • password
  • roles
  • nickname
  • url
  • first_name
  • last_name
  • registered
  • bio
  • email
  • nicename
  • display_name

WordPressComment

Represents a WordPress comment.

  • id
  • user
  • post
  • post_title
  • parent
  • date_created (datetime)
  • status
  • content
  • link
  • author
  • author_url
  • author_email
  • author_ip

WordPressMedia

Represents a WordPress post media attachment.

  • id
  • parent
  • title
  • description
  • caption
  • date_created (datetime)
  • link
  • thumbnail
  • metadata

WordPressOption

Represents a WordPress blog setting/option.

  • name
  • description
  • value
  • read_only (bool)