Skip to content
Ben Huson edited this page Jul 2, 2014 · 19 revisions

Filters

wps_meta_box_title

Change the title of the Subtitle meta box when editing a post.

Parameters

$title
(string) The title of the meta box.
Default: "Subtitle"

$post_type
(string) (optional) The post type being filtered.

Example

View example

wps_subtitle

Filter the post subtitle.

Parameters

$subtitle
(string) The subtitle.
Default: The subtitle text.

$post
(object) (optional) The post object being filtered.

wps_subtitle_field_description

Add descriptive text below the subtitle field when editing a post.

Parameters

$description
(string) The description.
Default: "".

$post
(object) (optional) The post object being filtered.

Example

View example

wps_subtitle_use_meta_box

If using WordPress 3.5+ and WP Subtitle 2.2+, then the subtitle field in the admin is positioned below the main title field. If you would prefer to revert back to editing the subtitle field in a meta box you can use this filter to return false. This can be done for specific post types.

Parameters

$use_meta_box
(boolean) Use the meta box?
Default: false

$post_type
(string) (optional) The post type being filtered.

Example

View example