adrianomicci
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] PayPal IPN Hook Doesn’t TriggerI’ve solved thanks to some suggestions got on slack! ??
I’ve putted hook in a custom plugin with priority -1.$this->loader->add_action('valid-paypal-standard-ipn-request', $plugin_public, 'valid_paypal_standard_ipn_request_callback', -1, 1);
I hope this can be useful to someone ??
- This reply was modified 3 years, 7 months ago by adrianomicci.
Forum: Plugins
In reply to: [WooCommerce] PayPal IPN Hook Doesn’t TriggerThank you, I’m trying to ask via Slack and Facebook, I’ll reply here if I got anything.
Forum: Fixing WordPress
In reply to: PayPal IPN Hook Doesn’t TriggerYou are right, I have to post it in Woocommerce section, sorry my fault ??
Forum: Plugins
In reply to: [WP Customer Area] View private file instead of downloadSure!
Here the link
<a href="javascript:void(0);" onclick="apriCatalogo('<?php cuar_the_attached_file_link($post->ID, $file); ?>')" class="btn btn-default btn-sm"> <span class="fa fa-file-pdf-o"></span> <span class="hidden-xs"> Apri</span> </a>
Here the div that will contain iframe
<div id="cataloghi_iframe"></div>
Here the javascript
<script> function apriCatalogo( link ) { const iframe = '<iframe src="' + link + '" style="width: 100%;height: 100vh;"></iframe>'; jQuery('#cataloghi_iframe').html( iframe ); } </script>
Very easy with your filter ??
Forum: Plugins
In reply to: [WP Customer Area] View private file instead of downloadThanks, it works perfectly!
Forum: Plugins
In reply to: [WP Customer Area] View private file instead of downloadHi, thank for your reply.
I found customer-private-files-single-post-footer.template.php and cuar_the_attached_file_link($post->ID, $file).However in this way file will be downloaded also if I put its link in src of an iframe.
Is there a method to get only the link without download it?