\Cairn_Post

Modifications to the Post to include copyright licensing options.

Summary

Methods
Properties
Constants
body()
init()
save_postdata()
header()
add_custom_box()
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 add licensing box

save_postdata()

save_postdata( $post_id)

Callback to save licensing information

Parameters

$post_id

header()

header( $page)

Callback to add styles for the licensing box

Parameters

$page

add_custom_box()

add_custom_box()

Callback to add HTML for the licensing box