{"id":23220,"date":"2013-05-02T05:13:57","date_gmt":"2013-05-02T05:13:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/subcontent\/"},"modified":"2014-06-30T11:47:35","modified_gmt":"2014-06-30T11:47:35","slug":"subcontent","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/subcontent\/","author":5697464,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2","stable_tag":"trunk","tested":"3.9.40","requires":"3.5.1","requires_php":"","requires_plugins":"","header_name":"Subcontent","header_author":"Shinichi Nishikawa","header_description":"","assets_banners_color":"","last_updated":"2014-06-30 11:47:35","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/nskw-style.com\/2013\/wordpress\/plugin-downloads\/subcontent.html \u200e","header_author_uri":"http:\/\/en.nskw-style.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3130,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Another editor for subcontent appears!"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2009,1332,59422,16466],"plugin_category":[46],"plugin_contributors":[86527],"plugin_business_model":[],"class_list":["post-23220","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-field","plugin_tags-editor","plugin_tags-sub-content","plugin_tags-wp_editor","plugin_category-editor-and-writing","plugin_contributors-shinichin","plugin_committers-shinichin"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/subcontent.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Adds another text editor below the editor in your post\/page\/custom-post-type edit page.<\/p>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/ShinichiNishikawa\/subcontent\">GitHub<\/a><\/li>\n<li><a href=\"http:\/\/nskw-style.com\/2013\/wordpress\/plugin-downloads\/subcontent.html\">Plugin Homepage<\/a><\/li>\n<\/ul>\n\n<h4>Retriving and displaying in templates<\/h4>\n\n<p>Use <code>get_the_subcontent()<\/code> to retrieve and <code>the_subcontent()<\/code> to display.<\/p>\n\n<h4>Change label<\/h4>\n\n<p>By default the label of the input field is \"Subtitle\". There's a hook for changing it.<\/p>\n\n<pre><code>add_filter( 'nskw-sce-meta_label', 'nskw_changesubcontentlabel' );\nfunction nskw_changesubcontentlabel() {\n    return 'Contact Information';\n}\n<\/code><\/pre>\n\n<h4>Change the height of the editor<\/h4>\n\n<p>Default it's 10.<\/p>\n\n<pre><code>add_filter( 'nskw-sce-row', 'change_subcontent_row' );\nfunction change_subcontent_row() {\n\u00a0\u00a0\u00a0\u00a0return 20;\n}\n<\/code><\/pre>\n\n<h4>Hide in particular post type<\/h4>\n\n<pre><code>add_filter( 'nskw-sce-post_type', 'nskw_hide_subcontent' );\nfunction nskw_hide_subcontent() {\n    return array( 'page', 'newposttype' );\n}\n<\/code><\/pre>\n\n<h4>Disable wpautop<\/h4>\n\n<pre><code>add_filter( 'nskw-sce-wpautop', 'nskw_change_wpautop' );\nfunction nskw_change_wpautop() {\n    return false;\n}\n<\/code><\/pre>\n\n<h4>No Media Uploader<\/h4>\n\n<pre><code>add_filter( 'nskw-sce-media_buttons', 'nskw_change_mediasetting' );\nfunction nskw_change_mediasetting() {\n    return false;\n}\n<\/code><\/pre>\n\n<h4>No tinymce<\/h4>\n\n<pre><code>add_filter( 'nskw-sce-tinymce', 'nskw_cange_tinymce' );\nfunction nskw_cange_tinymce() {\n    return false;\n}\n<\/code><\/pre>\n\n<h4>No shortcode rendering<\/h4>\n\n<pre><code>add_filter( 'nskw-sce-shortcode', '__return_false' );\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>subcontent<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<p>0.1 First Release.<\/p>\n\n<p>0.2 Merged <a href=\"https:\/\/github.com\/ShinichiNishikawa\/subcontent\/commit\/2c53a44d1380fa8e271d353af29cf6c245df4406\">dcondrey's Pull Request<\/a>, but changed the order of wpautop and do_shortcode.<\/p>","raw_excerpt":"Adds another text editor below the editor in your post\/page\/custom-post-type edit page.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/23220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=23220"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shinichin"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=23220"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=23220"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=23220"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=23220"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=23220"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=23220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}