{"id":13567002,"date":"2020-10-22T10:59:47","date_gmt":"2020-10-22T10:59:47","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-conditional-function-for-processing-order-template\/"},"modified":"2020-10-22T11:00:27","modified_gmt":"2020-10-22T11:00:27","slug":"wordpress-conditional-function-for-processing-order-template","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-conditional-function-for-processing-order-template\/","title":{"rendered":"wordpress conditional function for processing order template"},"content":{"rendered":"<p>I am looking for right WordPress conditional function, like: <code>is_confirmation_email_template()<\/code>.<\/p>\n<p>I have a custom filter which is used in e-mail templates that gets sent to the customer and would like to know if its confirmation e-mail or not in order to display \/ include some texts or not.<\/p>\n<p>Right now I only have (for conditional statements):<\/p>\n<p><code>is_order_received_page() &amp;&amp; is_view_order_page()<\/code><\/p>\n<p>Anyone?<\/p>\n","protected":false},"template":"","class_list":["post-13567002","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13567002","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13567002\/revisions"}],"predecessor-version":[{"id":13567004,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13567002\/revisions\/13567004"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13567002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}