Title: Editing core php
Last modified: August 4, 2024

---

# Editing core php

 *  Resolved [krashkat](https://wordpress.org/support/users/krashkat/)
 * (@krashkat)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/editing-core-php/)
 * Hi! I am trying to remove Klarna-message from product page (it slows my product
   page loading), I found the file the function is located in (class-wc-payments-
   payment-method-messaging-element.php) and managed to remove the message.
 * Though I do not want to edit plugin core files, so I put the copy of class-wc-
   payments-payment-method-messaging-element.php in my child theme folder, but seems
   to be it does’t override the core file (tried to put in mychildtheme/woocommerce-
   payments/class-wc-payments-payment-method-messaging-element.php and mychildtheme/
   woocommerce-payments/includes/class-wc-payments-payment-method-messaging-element.
   php)
 * Where should I put my copy on the file to make it override the core file?

Viewing 1 replies (of 1 total)

 *  [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * (@ckadenge)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/editing-core-php/#post-17932745)
 * Hi [@krashkat](https://wordpress.org/support/users/krashkat/),
 * Thank you for reaching out.
 * I understand you’re trying to override a core file of WooPayments plugin.
 * Just to clarify, this forum is meant for general support with the core functionality
   of WooPayments itself. For development and custom coding questions, it’s best
   to ask for insight related to those on either the [WooCommerce Advanced Facebook group](https://www.facebook.com/groups/advanced.woocommerce/)
   or the [WooCommerce Community Slack](https://woocommerce.com/community-slack/).
   Many of our developers hang out there and will be able to offer insights into
   your question.
   I wish I could help more, but hopefully, this gets you going in
   the right direction to get some further insight/information.

Viewing 1 replies (of 1 total)

The topic ‘Editing core php’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-payments/assets/icon-256x256.png?rev=3234740)
 * [WooPayments: Integrated WooCommerce Payments](https://wordpress.org/plugins/woocommerce-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-payments/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ckadenge (woo-hc)](https://wordpress.org/support/users/ckadenge/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/editing-core-php/#post-17932745)
 * Status: resolved