{"id":8125,"date":"2020-11-27T17:27:39","date_gmt":"2020-11-27T09:27:39","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=8125"},"modified":"2020-11-26T17:35:51","modified_gmt":"2020-11-26T09:35:51","slug":"remove-additional-information-tab","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/woocommerce\/remove-additional-information-tab.html","title":{"rendered":"\u5220\u9664WooCommerce\u5176\u4ed6\u4fe1\u606fAdditional Information\u6807\u7b7e\u7684\u65b9\u6cd5"},"content":{"rendered":"<p>\u4e0d\u5c11\u670b\u53cb\u4f7f\u7528WordPress\u548cWooCommerce\u642d\u5efa\u81ea\u5df1\u7684\u5916\u8d38\u72ec\u7acb\u7ad9\uff0c\u90a3\u4e48\u5728\u4ea7\u54c1\u8be6\u60c5\u9875\u9762\u901a\u5e38\u5c31\u4f1a\u51fa\u73b0\u4e00\u4e2a\u5176\u4ed6\u4fe1\u606f\u7684\u6807\u7b7e\uff0c\u82f1\u6587\u53ebAdditional Information\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u672c\u6587\u5976\u7238\u6559\u5927\u5bb6\u5982\u4f55\u5220\u9664\u8fd9\u4e2aAdditional Information\u6807\u7b7e\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-8126 size-full\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2020\/11\/Pasted-into-\u5220\u9664WooCommerce\u5176\u4ed6\u4fe1\u606fAdditional-Information\u6807\u7b7e\u7684\u65b9\u6cd5.png\" alt=\"Additional Information\u6807\u7b7e\" width=\"1049\" height=\"330\" \/><\/p>\n<p>\u60f3\u8981\u5220\u9664Additional Information\u6807\u7b7e\u6709\u4e24\u79cd\u65b9\u5f0f\u3002<\/p>\n<p><strong>1\u3001\u4f7f\u7528css\u4ee3\u7801\u9690\u85cf\uff0c\u8fd9\u6837\u7528\u6237\u770b\u4e0d\u5230\uff0c\u4f46\u662f\u4ee3\u7801\u8fd8\u5728\u3002<\/strong><\/p>\n<pre>\/* Hide the additional information tab *\/\r\nli.additional_information_tab {\r\ndisplay: none !important;\r\n}<\/pre>\n<p>\u4e0a\u9762\u5177\u4f53\u7684\u4ee3\u7801\u8981\u6839\u636e\u4f60\u4e3b\u9898\u6765\u5224\u65ad\u5bf9\u5e94\u7684class\uff0c\u6240\u4ee5\u4f60\u76f4\u63a5\u590d\u5236\u5e76\u7c98\u8d34\u5230\u4f60\u7f51\u7ad9\u7684\u6837\u5f0f\u8868\u91cc\u9762\u4e0d\u4e00\u5b9a\u4f1a\u751f\u6548\u3002<\/p>\n<p><strong>2\u3001\u4f7f\u7528\u4ee3\u7801\u5c4f\u853d\u8f93\u51fa<\/strong><\/p>\n<pre>\/\/ Remove the additional information tab\r\nadd_filter( 'woocommerce_product_tabs', 'naibabiji_remove_product_tabs', 9999 );\r\nfunction naibabiji_remove_product_tabs( $tabs ) {\r\n\u00a0\u00a0\u00a0\u00a0unset( $tabs['additional_information'] ); \r\n\u00a0\u00a0\u00a0\u00a0return $tabs;\r\n}<\/pre>\n<p>\u628a\u4e0a\u9762\u7684\u4ee3\u7801\u590d\u5236\u540e\u7c98\u8d34\u5230\u7f51\u7ad9\u4e3b\u9898\u51fd\u6570\u91cc\u9762\u4fdd\u5b58\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u65b0\u624b\u7684\u8bdd\u63a8\u8350\u7528\u7b2c\u4e8c\u79cd\u65b9\u6cd5\uff0c\u4e0d\u9700\u8981\u4f60\u53bb\u5224\u65ad\u4e3b\u9898\u4ee3\u7801\uff0c\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u5c31\u884c\u4e86\u3002\u5982\u679c\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9\uff0c\u8bb0\u5f97\u5e2e\u5fd9\u5ba3\u4f20\u4e0b\u5976\u7238\u5efa\u7ad9\u7b14\u8bb0\u3002<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;8125&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;41&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;1.8&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;1.8\\\/5 - (41 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u5220\u9664WooCommerce\u5176\u4ed6\u4fe1\u606fAdditional Information\u6807\u7b7e\u7684\u65b9\u6cd5&quot;,&quot;width&quot;:&quot;48.4&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 48.4px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            1.8\/5 - (41 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u5c11\u670b\u53cb\u4f7f\u7528WordPress\u548cWooCommerce\u642d\u5efa\u81ea\u5df1\u7684\u5916\u8d38\u72ec\u7acb\u7ad9\uff0c\u90a3\u4e48\u5728\u4ea7\u54c1\u8be6\u60c5\u9875\u9762\u901a\u5e38\u5c31\u4f1a\u51fa\u73b0\u4e00\u4e2a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7726,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u5220\u9664WooCommerce\u5176\u4ed6\u4fe1\u606fAdditional Information\u6807\u7b7e\u7684\u65b9\u6cd5 - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u4e0d\u5c11\u670b\u53cb\u4f7f\u7528WordPress\u548cWooCommerce\u642d\u5efa\u81ea\u5df1\u7684\u5916\u8d38\u72ec\u7acb\u7ad9\uff0c\u90a3\u4e48\u5728\u4ea7\u54c1\u8be6\u60c5\u9875\u9762\u901a\u5e38\u5c31\u4f1a\u51fa\u73b0\u4e00\u4e2a\u5176\u4ed6\u4fe1\u606f\u7684\u6807\u7b7e\uff0c\u82f1\u6587\u53ebAdditional Information\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u672c\u6587\u5976\u7238\u6559\u5927\u5bb6\u5982\u4f55\u5220\u9664\u8fd9\u4e2aAdditional Information\u6807\u7b7e\u3002 \u60f3\u8981\u5220\u9664Additional Information"},"footnotes":""},"categories":[405],"tags":[],"class_list":["post-8125","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/8125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=8125"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/8125\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/7726"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=8125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=8125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=8125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}