-
Notifications
You must be signed in to change notification settings - Fork 16
Hooks & Filters
Change the title of the Subtitle meta box when editing a post.
$title
(string) The title of the meta box.
Default: "Subtitle"
$post_type
(string) (optional) The post type being filtered.
Filter the post subtitle.
$subtitle
(string) The subtitle.
Default: The subtitle text.
$post
(object) (optional) The post object being filtered.
Add descriptive text below the subtitle field when editing a post.
$description
(string) The description.
Default: "".
$post
(object) (optional) The post object being filtered.
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.
$use_meta_box
(boolean) Use the meta box?
Default: false
$post_type
(string) (optional) The post type being filtered.
This allows you to add/change the placeholder text in the subtitle field.
$placeholder
(string) Placeholder text.
Default: "Enter subtitle here"