Title: checking out image
Last modified: December 20, 2021

---

# checking out image

 *  Resolved [shyton](https://wordpress.org/support/users/shyton/)
 * (@shyton)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/checking-out-image/)
 * Hi I want to change this image [https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-medium.png](https://www.paypalobjects.com/webstatic/en_US/i/buttons/checkout-logo-medium.png),
   the one that shows when checking out

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [shyton](https://wordpress.org/support/users/shyton/)
 * (@shyton)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/checking-out-image/#post-15181182)
 * Is this code below accurate ?,It works but I just want to be extra sure if it’s
   safe to use
 *     ```
       add_action( 'wp_footer', function () { ?>
       <script>
       document.getElementById("pmpro_btn-submit-paypalexpress").src = "https://coordonline.com/wp-content/uploads/2021/12/decorative-cardboard-boxes-for-gifts-on-the-table-850x565-1.jpg";
   
       </script>
       <?php } );
       ```
   
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/checking-out-image/#post-15181634)
 * Hi there. That code might work, but there is a better way to do it on the PHP
   side using a filter we have in place.
 * Here is an article on that: [https://www.paidmembershipspro.com/change-the-paypal-button-on-membership-checkout/](https://www.paidmembershipspro.com/change-the-paypal-button-on-membership-checkout/)
 * The article is not behind the paywall, so you should be able to access the code
   and stuff.
 * Let me know if this works for you.
 *  Plugin Author [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * (@strangerstudios)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/checking-out-image/#post-15181660)
 * Here is a link to the relevant code gist showing how to use the pmpro_paypal_button_image
   filter: [https://gist.github.com/kimcoleman/438b2fca4cff932b68e22e547f2afaf2#file-my_pmpro_paypal_button_image-php](https://gist.github.com/kimcoleman/438b2fca4cff932b68e22e547f2afaf2#file-my_pmpro_paypal_button_image-php)
 * The article also has links to a few options for the buttons hosted by PayPal.
   You can also use your own image that you uploaded yourself. There may be TOS 
   requirements on the PayPal side, so check out for those.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘checking out image’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jason Coleman](https://wordpress.org/support/users/strangerstudios/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/checking-out-image/#post-15181660)
 * Status: resolved