Constants

POST_TYPE

POST_TYPE

Methods

init()

init()

__construct()

__construct()

Conditionally hook into WordPress.

Themes must declare that they support this module by adding add_theme_support( 'jetpack-comic' ); during after_setup_theme.

If no theme support is found there is no need to hook into WordPress. We'll just return early instead.

admin_footer()

admin_footer()

bulk_edit()

bulk_edit()

Handle the "Convert to [Post|Comic]" bulk action.

bulk_edit_notices()

bulk_edit_notices()

Show the post conversion success notice.

register_scripts()

register_scripts()

admin_enqueue_scripts()

admin_enqueue_scripts()

register_post_types()

register_post_types()

manage_posts_columns()

manage_posts_columns( $columns)

Parameters

$columns

manage_posts_custom_column()

manage_posts_custom_column( $column_name,  $post_ID)

Parameters

$column_name
$post_ID

custom_permalink_for_feedbag()

custom_permalink_for_feedbag(string $permalink)

The function url_to_postid() doesn't handle pretty permalinks for CPTs very well. When we're generating an RSS feed to be consumed for Feedbag (the Reader's feed storage mechanism), eschew a pretty URL for one that will get the post into the Reader.

Parameters

string $permalink

The existing (possibly pretty) permalink.

updated_messages()

updated_messages( $messages)

Parameters

$messages

site_supports_comics()

site_supports_comics()

Should this Custom Post Type be made available?

include_in_feeds()

include_in_feeds(\WP_Query $query)

Anywhere that a feed is displaying posts, show comics too.

Parameters

\WP_Query $query

upload()

upload()

API endpoint for front-end image uploading.

add_posts_to_loop()

add_posts_to_loop( $query)

Parameters

$query