Title: wordpress ajax blocks this plugin.
Last modified: November 9, 2016

---

# wordpress ajax blocks this plugin.

 *  [Gnanasekaran Loganathan](https://wordpress.org/support/users/gnanasekaran/)
 * (@gnanasekaran)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/)
 * I added below function in fuinction.php its block this wish list functionality.
 * function redirect_non_admin_users() {
    if ( ! current_user_can( ‘manage_options’)&&‘/
   wp-admin/admin-ajax.php’ != $_SERVER[‘PHP_SELF’] ) { wp_redirect( home_url() );
   exit; }

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

 *  [Yousystem](https://wordpress.org/support/users/yousystem/)
 * (@yousystem)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8424137)
 * Thanks but my problem is the button ADD dont appears. I use php code anche short
   code and not working fine.
 *  Thread Starter [Gnanasekaran Loganathan](https://wordpress.org/support/users/gnanasekaran/)
 * (@gnanasekaran)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8438359)
 * [@yousystem](https://wordpress.org/support/users/yousystem/), Share your code
   please.
 *  [Yousystem](https://wordpress.org/support/users/yousystem/)
 * (@yousystem)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8438718)
 * What code exactly?
 *  Thread Starter [Gnanasekaran Loganathan](https://wordpress.org/support/users/gnanasekaran/)
 * (@gnanasekaran)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8443331)
 * Which shortcode not appears for you in php. Just put that code here.
 * Note : If you use HTpasswd will restrict the button. Button not display in front
   end.
 *  [Yousystem](https://wordpress.org/support/users/yousystem/)
 * (@yousystem)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8443438)
 * I dont use HTpasswd. After last update to WordPress the button dont show.
    I 
   always use this code in template file:
 * <?php
    $arg = array ( ‘echo’ => true ); do_action(‘gd_mylist_btn’,$arg); ?>
 *  Thread Starter [Gnanasekaran Loganathan](https://wordpress.org/support/users/gnanasekaran/)
 * (@gnanasekaran)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8448518)
 * I used below short code for “add wish list ” button
 * <?php echo do_shortcode(‘[show_gd_mylist_btn]’);//Wishlist shortcode ?>
 * For list of wishlist,
 * [show_gd_mylist_list]
 *  [Yousystem](https://wordpress.org/support/users/yousystem/)
 * (@yousystem)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8449544)
 * A long time i’ve just try and not work. Now not work again. Any Idea?

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

The topic ‘wordpress ajax blocks this plugin.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gd-mylist_fbfbfc.svg)
 * [GDMylist](https://wordpress.org/plugins/gd-mylist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gd-mylist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gd-mylist/)
 * [Active Topics](https://wordpress.org/support/plugin/gd-mylist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gd-mylist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gd-mylist/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Yousystem](https://wordpress.org/support/users/yousystem/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/wordpress-ajax-blocks-this-plugin/#post-8449544)
 * Status: not resolved