{"id":136,"date":"2023-06-05T12:45:19","date_gmt":"2023-06-05T04:45:19","guid":{"rendered":"http:\/\/pro369.com\/blog\/?p=136"},"modified":"2023-06-05T12:45:19","modified_gmt":"2023-06-05T04:45:19","slug":"%e3%80%90wordpress%e3%80%91%e5%ae%89%e8%a3%9d-woocommerce-%e8%b3%bc%e7%89%a9%e8%bb%8a%e6%9c%80%e6%96%b0%e7%89%88-%e7%99%bc%e7%94%9f-call-to-undefined-function-wp-enqueue-media-%e8%a7%a3%e6%b1%ba","status":"publish","type":"post","link":"https:\/\/por.tw\/blog\/2023\/06\/05\/%e3%80%90wordpress%e3%80%91%e5%ae%89%e8%a3%9d-woocommerce-%e8%b3%bc%e7%89%a9%e8%bb%8a%e6%9c%80%e6%96%b0%e7%89%88-%e7%99%bc%e7%94%9f-call-to-undefined-function-wp-enqueue-media-%e8%a7%a3%e6%b1%ba\/","title":{"rendered":"\u3010WordPress\u3011\u5b89\u88dd WooCommerce \u8cfc\u7269\u8eca\u6700\u65b0\u7248 \u767c\u751f Call to undefined function wp_enqueue_media() \u89e3\u6c7a\u65b9\u6cd5"},"content":{"rendered":"<p><strong><span style=\"font-size: 16px;\"><span style=\"color: #0000ff;\">\u3010Wordpress\u3011\u5b89\u88dd WooCommerce \u8cfc\u7269\u8eca\u6700\u65b0\u7248 \u767c\u751f Call to undefined function wp_enqueue_media() \u89e3\u6c7a\u65b9\u6cd5<\/span><\/span><\/strong><\/p>\n<p>\u5b89\u88dd WooCommerce \u8cfc\u7269\u8eca\u5916\u639b\u7a0b\u5f0f\u9ad8\u7248\u672c \u5230Wordpress 3.5\u7248\u672c\u4ee5\u4e0b\u7684(\u4f8b\u5982Wordpress 3.3\u6216Wordpress 3.4)\u7248\u672c\u4e2d\uff0c<span style=\"color: #800080;\">\u53ef\u80fd\u5c31\u6703\u51fa\u73fe\u4ee5\u4e0b\u554f\u984c\uff1a<\/span><\/p>\n<p><strong><span style=\"font-size: 16px;\">\u00a0\u00a0\u00a0<span style=\"color: #ff0000;\"> Fatal error: Call to undefined function wp_enqueue_media() in \/home\/neal\/public_html\/Wordpress\/wp-content\/plugins\/woocommerce\/admin\/woocommerce-admin-init.php on line 420<\/span><\/span><\/strong><\/p>\n<p><strong><span style=\"font-size: 16px;\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/por.tw\/blog\/wp-content\/uploads\/2013\/11\/7256473963.png\" width=\"590\" height=\"300\" \/><\/span><\/strong><\/p>\n<p><strong><span style=\"color: #ff0000; font-size: 16px;\">\u70ba\u4f55\u6703\u51fa\u73fe\u6b64\u8acb\u6cc1\u5462\uff1f\u53c8\u5982\u4f55\u89e3\u6c7a\u5462\uff1f<\/span><\/strong><br \/>\n<strong><span style=\"font-size: 16px;\">\u7b54\u6848\u5f88\u7c21\u55ae\uff1a\u4e3b\u8981\u539f\u56e0\u5982\u540c\u4e0a\u9762\u82f1\u6587\u6240\u63d0\u53ca\uff0c\u6709\u4e00\u500b\u529f\u80fd\u5f0f\u6c92\u6709\u88ab\u5b9a\u7fa9\u5230\u56e0\u6b64\u7121\u6cd5\u8abf\u7528\u3002<\/span><\/strong><br \/>\n<strong><span style=\"font-size: 16px;\"><span style=\"color: #800000;\">\u5c31\u662f\u9019\u500b\uff1a\u300e<\/span> <span style=\"background-color: #ffff00;\">wp_enqueue_media() <\/span><span style=\"color: #800000;\">\u300f<\/span><\/span><\/strong><br \/>\n<strong><span style=\"font-size: 16px;\">\u5176\u5be6\u4e0d\u53ea\u662f\u5b89\u88dd\u8f03\u9ad8\u7248\u672c\u7684WooCommerce\u6703\u57283.5\u4ee5\u4e0b\u7248\u672c\u51fa\u73fe\u9019\u500b\u554f\u984c\uff0c\u5927\u90e8\u5206\u65b0\u7248\u672c\u7684Plugin\u53ea\u8981\u662f\u6d89\u53ca\u5230\u5a92\u9ad4\u5eab\u7684\u5e7e\u4e4e\u90fd\u6703\u78b0\u5230\u9019\u554f\u984c\u3002<\/span><\/strong><br \/>\n<strong><span style=\"font-size: 16px;\">\u89e3\u6c7a\u65b9\u6cd5\u5f88\u7c21\u55ae\uff0c\u5c31\u662f\u8d95\u7dca\u66f4\u65b0Wordpress\u5427\uff01<\/span><\/strong><br \/>\n<strong><span style=\"font-size: 16px;\">\u7d50\u81f3\u7e3d\u6559\u982d\u767c\u8868\u672c\u6587\u4e4b\u6642\uff0cWordpress\u5df2\u7d93\u66f4\u65b0\u52303.71\u7248\u4e86\u3002<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"post-excerpt\"><p>\u3010Wordpress\u3011\u5b89\u88dd WooCommerce \u8cfc\u7269\u8eca\u6700\u65b0\u7248 \u767c\u751f Call to undefined f<\/p>\n<\/div>","protected":false},"author":1,"featured_media":523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[89],"class_list":["post-136","post","type-post","status-publish","format-standard","has-post-thumbnail","category-3","tag-89"],"_links":{"self":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":0,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"wp:attachment":[{"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/por.tw\/blog\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}