<\/a><\/figure>\n\n\n\nJak vid\u00edte, p\u0159id\u00e1n\u00ed obsahu do e-mailu je velmi jednoduch\u00e9. Nav\u00edc je mo\u017en\u00e9 pomoc\u00ed prom\u011bnn\u00fdch sent_to_admin a email zjistit, zda jde o e-mail pro z\u00e1kazn\u00edka a p\u0159\u00edpadn\u011b o jak\u00fd e-mail jde konkr\u00e9tn\u011b. <\/p>\n\n\n\n
V p\u0159\u00edpad\u011b, \u017ee budeme cht\u00edt p\u0159idat speci\u00e1ln\u00ed obsah jen do e-mailu o nov\u00e9 objedn\u00e1vce, kter\u00fd je pos\u00edl\u00e1n adminovi, zm\u011bn\u00edme k\u00f3d n\u00e1sleduj\u00edc\u00edm zp\u016fsobem:<\/p>\n\n\n\n
add_action( 'woocommerce_email_after_order_table', 'musilda_email_after_order_table', 5, 4 );\nfunction musilda_email_after_order_table( $order, $sent_to_admin, $plain_text, $email ) {\n\n\tif ( true === $sent_to_admin && 'new_order' === $emai->id ) {\n\n\t\techo'<p>' . __( 'Text za tabulkou', 'musilda' ) . '<\/p>';\n\n\t}\n\n}<\/code><\/pre>\n\n\n\nTakto m\u016f\u017eeme v podstat\u011b jakkoliv upravovat obsah e-mail\u016f, dle toho o jak\u00fd e-mail jde, nebo komu je pos\u00edl\u00e1n.<\/p>\n","protected":false},"excerpt":{"rendered":"
V obsahu transak\u010dn\u00edho e-mailu je v\u017edy tabulky se soupisem objedn\u00e1vky. Pomoc\u00ed vyu\u017eit\u00ed akce m\u016f\u017eeme p\u0159idat obsah p\u0159ed a za tabulku. Uk\u00e1\u017eeme si, jak nav\u00edc ovliv\u0148ovat zobrazen\u00ed podle toho o jak\u00fd e-mail jde. Obsah p\u0159ed tabulku p\u0159id\u00e1me jednodu\u0161e, pomoc\u00ed n\u00e1sleduj\u00edc\u00edho k\u00f3du: V\u00fdsledek: Stejn\u00fdm zp\u016fsobem p\u0159id\u00e1me obsah za tabulku: V\u00fdsledek: Jak vid\u00edte, p\u0159id\u00e1n\u00ed obsahu do e-mailu je<\/p>\n","protected":false},"author":1,"featured_media":5600,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[29],"tags":[],"class_list":["post-6595","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-woocommerce-snippety"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/6595"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=6595"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/6595\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/5600"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=6595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=6595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=6595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}