Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1289530
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 3 years ago.
Improve this questionCurrently I'm looking for a way to modify the code of the Plugin WooCommerce-German-Market.
The goal is to change the email footer so only imprint is shown (not the full terms etc.)
My first hint was to modify a code for removing special tags. But it's not working.
My custom function.php
function showOnlyImprint(){
$imprint_page_id = get_option( WGM_Helper::get_wgm_option( 'impressum' ) );
$imprint_page = get_post( $imprint_page_id );
WGM_Email::the_mail_footer_section(
__( 'Legal Information', 'woocommerce-german-market' ),
$imprint_page->post_content
);
}
add_filter('get_email_de_footer','showOnlyImprint');
But I'm pretty sure that get_email_de_footer
is wrong.
In the file WooCommerce-German-Market.php
I read the line:
add_action( 'woocommerce_email_footer', array( 'WGM_Email', 'disable_footer_text_for_admin_emails' ) );
But I'm confused, what is the array doing? I cannot find WGM_Email
? Is it a file?
Closed. This question is off-topic. It is not currently accepting answers.Updated: WGM_Email is a prefix for the
WGM_Email.php
. Good to know. But still it's not working
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 3 years ago.
Improve this questionCurrently I'm looking for a way to modify the code of the Plugin WooCommerce-German-Market.
The goal is to change the email footer so only imprint is shown (not the full terms etc.)
My first hint was to modify a code for removing special tags. But it's not working.
My custom function.php
function showOnlyImprint(){
$imprint_page_id = get_option( WGM_Helper::get_wgm_option( 'impressum' ) );
$imprint_page = get_post( $imprint_page_id );
WGM_Email::the_mail_footer_section(
__( 'Legal Information', 'woocommerce-german-market' ),
$imprint_page->post_content
);
}
add_filter('get_email_de_footer','showOnlyImprint');
But I'm pretty sure that get_email_de_footer
is wrong.
In the file WooCommerce-German-Market.php
I read the line:
add_action( 'woocommerce_email_footer', array( 'WGM_Email', 'disable_footer_text_for_admin_emails' ) );
But I'm confused, what is the array doing? I cannot find WGM_Email
? Is it a file?
Share Improve this question edited Jul 14, 2021 at 16:33 Philipp Mochine asked Jul 14, 2021 at 16:28 Philipp MochinePhilipp Mochine 1015 bronze badges 1Updated: WGM_Email is a prefix for the
WGM_Email.php
. Good to know. But still it's not working
- If you are interested, I found the basic code here: kriesi.at/support/topic/e-mails-german-market – Philipp Mochine Commented Jul 14, 2021 at 16:32
1 Answer
Reset to default 0Okay after digging around and trying to understand the syntax of wordpress's API, I found the solution:
add_filter('wgm_email_display_terms', false);
add_filter('wgm_email_display_cancellation_policy', false);
add_filter('wgm_email_display_gerneral_customer_information_headline', false);
add_filter('wgm_email_display_delivery', false);
add_filter('wgm_email_display_payment_methods', false);
I hope this helps you!
本文标签: pluginsGerman Market How can I only show the imprint in the footer of the mail
版权声明:本文标题:plugins - German Market: How can I only show the imprint in the footer of the mail? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741442201a2378985.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论