Title: JesperT's Replies | WordPress.org

---

# JesperT

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Getwid - Gutenberg Blocks] Instagram stopped working: Unsupported request – method type: get](https://wordpress.org/support/topic/instagram-stopped-working-unsupported-request-method-type-get/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/instagram-stopped-working-unsupported-request-method-type-get/#post-17475182)
 * I have the same issue. 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Favorites] Add_to_cart on list of Product Favorites](https://wordpress.org/support/topic/add_to_cart-on-list-of-product-favorites/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [6 years ago](https://wordpress.org/support/topic/add_to_cart-on-list-of-product-favorites/#post-13197043)
 * Yes to copy your favorites to your cart create a button:
    `<button id="favorites_to_cart"
   >Add favorites to cart</button>` Create an ajax function in your function.php
 *     ```
       function favorites_to_cart() {
       	global $woocommerce;
       	$clips = get_user_favorites();
       	foreach ($products as $product) {
       		$woocommerce->cart->add_to_cart( $product );
       	}
       	echo 'Your favorites is copied to the cart.';
       	wp_die();
       }
   
       add_action('wp_ajax_nopriv_favorites_to_cart', 'favorites_to_cart'); // ajax call for non-login user.
       add_action('wp_ajax_favorites_to_cart', 'favorites_to_cart'); // ajax call for login user.
       ```
   
 * Create a javascript function
 *     ```
       jQuery(document).ready(function($) {
   
             var favorites_to_cart = function() {
               $.ajax({
                 url: favorites_data.ajaxurl,
                 data: {
                   'action':'favorites_to_cart'
                 },
                 success:function(data) {
                   alert(data);
                 },  
                 error: function(errorThrown){
                   console.log('Error: ', errorThrown);
                 }
               });
             };
   
             $( "#favorites_to_cart" ).on( "click", function() {
               favorites_to_cart();
             });
   
           });
       ```
   
 * Good luck!
    -  This reply was modified 6 years ago by [JesperT](https://wordpress.org/support/users/jespert/).
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Favorites] Plugin doesn’t work, Author unresponsive](https://wordpress.org/support/topic/plugin-doesnt-work-author-unresponsive/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-work-author-unresponsive/#post-11283449)
 * It has for sure nothing to do with the plugin. It has to be some conflict with
   your theme or another plugin. One star is quite unfair.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Favorites] Not that good…](https://wordpress.org/support/topic/not-that-good-7/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/not-that-good-7/#post-11283446)
 * It has for sure nothing to do with the plugin. It has to be some conflict with
   your theme or another plugin. One star is quite unfair.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Media Library won't load display images](https://wordpress.org/support/topic/media-library-wont-load-display-images/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/media-library-wont-load-display-images/page/2/#post-6938981)
 * I got the same error in WP 4.4.2 and discovered that in my functions.php used
   the wrong hook to run remove_menu_page.
    (admin_init instead of admin_menu)
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Advanced Custom Fields (ACF®)] Horrendous Support… Actually, it's non-existent Support.](https://wordpress.org/support/topic/horrendous-support-actually-its-non-existent-support/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [11 years ago](https://wordpress.org/support/topic/horrendous-support-actually-its-non-existent-support/#post-7888208)
 * Exactly what is hidden from Authors? Do you even know how to use this plugin?
   The plugin is not made for amateurs. Please go back to your cradle and do your
   homework.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Advanced Custom Fields (ACF®)] Terrible](https://wordpress.org/support/topic/terrible-42/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [11 years ago](https://wordpress.org/support/topic/terrible-42/#post-7949440)
 * 1. Wrong, you can find all documentation well formatted here: [http://www.advancedcustomfields.com/resources/](http://www.advancedcustomfields.com/resources/)
   
   2. Wrong, in all my cases where I needed help [Elliot](http://profiles.wordpress.org/elliotcondon)
   answered me within 24 hours. [FAQ and Supportforum](http://support.advancedcustomfields.com/)
   3. It’s not, better than many others, maybe you are spoiled and lazy? 4. If you
   have this attitude – that does not surprise me.
 * **ACF is one of the most well build plugins for WordPress so please be careful
   with your statements.**
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Bootstrap Basic] Nice but not 100%](https://wordpress.org/support/topic/nice-but-not-100/)
 *  Thread Starter [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/nice-but-not-100/#post-7902479)
 * Nice, that what I call Polka. If you are interested I can send you som translation
   files in swedish.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Check if editing post or page?](https://wordpress.org/support/topic/check-if-editing-post-or-page/)
 *  [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/check-if-editing-post-or-page/#post-1345697)
 * This?
 *     ```
       if(strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php')) {
           //Post
       }else{
           //Page
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [current_user_can() in the __construct?](https://wordpress.org/support/topic/current_user_can-in-the-_construct/)
 *  Thread Starter [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/current_user_can-in-the-_construct/#post-1397395)
 * **Tnx!**
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [get_post_meta ads an extra “array”?](https://wordpress.org/support/topic/get_post_meta-ads-an-extra-array/)
 *  Thread Starter [JesperT](https://wordpress.org/support/users/jespert/)
 * (@jespert)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/get_post_meta-ads-an-extra-array/#post-1361994)
 * Aha, of course. Thank you **very** much!

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