\Cairn_Fineart_Post

Adds the fineart post type with several additional meta boxes.

Summary

Methods
Properties
Constants
body()
init()
save_postdata()
header()
add_custom_box()
purchase_box()
downloads_box()
attributions_box()
details_box()
pagination()
map_meta_cap()
updated_messages()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

body()

body(object $item, boolean $title) : string

Gets the formatted body for a post including licensing information.

Parameters

object $item

The item object as return by Cairn::loop

boolean $title

Weither or not to include the title.

Returns

string —

The formated body HTML.

init()

init()

Callback to initialize the fineart post type.

save_postdata()

save_postdata(integer $post_id)

Callback to save additional information for the fineart post type.

Parameters

integer $post_id

The ID for the post.

header()

header()

Callback to add styles and scripts for the fineart post type.

add_custom_box()

add_custom_box()

Callback to add meta boxes for the fineart post type.

purchase_box()

purchase_box()

Callback to add the purchase options meta box.

downloads_box()

downloads_box( $post)

Callback to add the download options meta box.

Parameters

$post

attributions_box()

attributions_box( $post)

Callback to add the attributions and references options meta box.

Parameters

$post

details_box()

details_box( $post)

Callback to add the details meta box.

Parameters

$post

pagination()

pagination( $total_items,  $total_pages,  $current)

Pagination for the orders pages.

Parameters

$total_items
$total_pages
$current

map_meta_cap()

map_meta_cap( $caps,  $cap,  $user_id,  $args)

Parameters

$caps
$cap
$user_id
$args

updated_messages()

updated_messages( $messages)

Parameters

$messages