Hide the Paypal “Pay Later” button
-
I know this has been asked before and I did read through those support posts, namely this one.
The problem is I tried that solution and it’s not working. So according to the earlier post, I:
- Created an “mu-plugins” folder, then created a php plugin file
- The following code went into the file:
- `<?php
add_action(‘wp_footer’, ‘load_paypal_custom_script’);
function load_paypal_custom_script(){
?>
<script src=”https://www.paypal.com/sdk/js?client-id=XXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&disable-funding=credit,card”></script>
<?php
}; ?>`I replaced the above client ID with “X”s
- I uploaded the file to the mu-plugins folder, then activated it.
After several browser refreshes and clearing my cache, this is what I am still seeing:
Where am I going wrong?
The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Hide the Paypal “Pay Later” button’ is closed to new replies.