Title: zed28's Replies | WordPress.org

---

# zed28

  [  ](https://wordpress.org/support/users/zed28/)

 *   [Profile](https://wordpress.org/support/users/zed28/)
 *   [Topics Started](https://wordpress.org/support/users/zed28/topics/)
 *   [Replies Created](https://wordpress.org/support/users/zed28/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/zed28/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/zed28/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/zed28/engagements/)
 *   [Favorites](https://wordpress.org/support/users/zed28/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Filtering payment gateways](https://wordpress.org/support/topic/filtering-payment-gateways/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/filtering-payment-gateways/#post-4613010)
 * Place it in you functions.php.
 * You need to replace conditions in filter/function with your own.
 * If you look at my code, you can see that for my purpose I am hidding “cheque”
   gateway when user choose “international delivery” or “local delivery” shipping,
   etc.
 * You need to replace my conditions with your own. Then it will work for you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Filtering payment gateways](https://wordpress.org/support/topic/filtering-payment-gateways/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/filtering-payment-gateways/#post-4613008)
 * Hi, Dalibr,
 * Plugin did not work for me too (I do not know why…).
    finally, I figured out 
   this problem using simple filter/function:
 * >  add_filter( ‘woocommerce_available_payment_gateways’, ‘hide_unrelated_gateways’);
   > function hide_unrelated_gateways ($available_gateways) {
   >  global $woocommerce;
   > if( ($woocommerce->session->chosen_shipping_method == ‘international_delivery’)
   > OR ($woocommerce->session->chosen_shipping_method == ‘local_delivery’)) { unset(
   > $available_gateways[‘cheque’] );
   >  }
   >  if( ($woocommerce->session->chosen_shipping_method == ‘local_pickup’)) {
   > unset($available_gateways[‘cod’] );
   >  }
   >  return $available_gateways; }
 * It simply unsets (hides) unwanted gateways. Replace conditions with your own.
   Hope it helps.
 * Alex
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Filtering payment gateways](https://wordpress.org/support/topic/filtering-payment-gateways/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/filtering-payment-gateways/#post-4612751)
 * Hi, Chirag Vora,
 * thank you for you reply, but unfortunatelly I am using version 2.0.20.
 * Alex
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Relevanssi - A Better Search] Checkboxes and URL comma separated values](https://wordpress.org/support/topic/checkboxes-and-url-comma-separated-values/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/checkboxes-and-url-comma-separated-values/#post-4458613)
 * Many many many thanks.
    Relevanssi is best, you are best!
 * Alex
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Help with modifying comment-reply.js](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/#post-4446232)
 * Solved
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Help with modifying comment-reply.js](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/help-with-modifying-comment-replyjs/#post-4446166)
 * I found out that ‘title_reply_to’ is ignored when “comment-reply.js” is loaded.
 * I think I need to write some code within “comment-reply.js” to rewrite “#reply-
   title” with new text, but I do not how.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-Slimbox2 Plugin] Change "Image 1 of 7" text](https://wordpress.org/support/topic/change-image-1-of-7-text/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/change-image-1-of-7-text/#post-4418226)
 * Uninstall and reinstall of plugin solved problem.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Passing variable between pages](https://wordpress.org/support/topic/passing-variable-between-pages/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/passing-variable-between-pages/#post-4391202)
 * I solved it!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Background image – does not display](https://wordpress.org/support/topic/background-image-does-not-display/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/background-image-does-not-display/#post-4387385)
 * Oh, my mistake. I did not know that I can not execute php code in page content.
   
   I must create new template file and put code there.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Dynamic heading panel with anchors](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/#post-4375325)
 * Many thanks, this is perfect!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Dynamic heading panel with anchors](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/#post-4375311)
 * I have my site on localhost just now.
 * Floating panel seems to be perfect solution. Can you give me some basic ideas
   for it, please?
 * Many thanks from Alex
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Dynamic heading panel with anchors](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/#post-4375249)
 * Sorry, my fault.
    It is not my site, I want to create something like this.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Dynamic heading panel with anchors](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/dynamic-heading-panel-with-anchors/#post-4375236)
 * Something like this:
 * [http://www.posudek.com/slovnik.php](http://www.posudek.com/slovnik.php)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Stay on the same static page after comment submit](https://wordpress.org/support/topic/stay-on-the-same-static-page-after-comment-submit/)
 *  Thread Starter [zed28](https://wordpress.org/support/users/zed28/)
 * (@zed28)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/stay-on-the-same-static-page-after-comment-submit/#post-4364188)
 * Thanks, keesiemeijer, this is exatcly what I was looking for.

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