We'll create fresh WordPress site with Subtitle installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Displays subtitle text field after the title in post, page and other post type edit page.
Use get_nskw_subtitle()
to retrieve and nskw_subtitle()
to display.
By default the label of the input field is "Subtitle". There's a hook for changing it.
add_filter( 'nskw-fat-meta_label', 'nskw_changeLabel' );
function nskw_changeLabel() {
return 'new label';
}
By default, subtitle field appears in every post type edit pages except for attachment.
To hide in particular post type pages, there’s a hook.
// hide subtitle field in posttype 'attachment', 'page'、''newposttype'
add_filter( 'nskw-fat_post_type', 'nskw_hide_subtitle' );
function nskw_hide_subtitle() {
return array( 'attachment', 'page', 'newposttype' );
}