Title: jon424's Replies | WordPress.org

---

# jon424

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to get Desktop Menu on Mobile View](https://wordpress.org/support/topic/trying-to-get-desktop-menu-on-mobile-view/)
 *  Thread Starter [jon424](https://wordpress.org/support/users/jon424/)
 * (@jon424)
 * [4 years ago](https://wordpress.org/support/topic/trying-to-get-desktop-menu-on-mobile-view/#post-15803424)
 * thanks, will do.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to get Desktop Menu on Mobile View](https://wordpress.org/support/topic/trying-to-get-desktop-menu-on-mobile-view/)
 *  Thread Starter [jon424](https://wordpress.org/support/users/jon424/)
 * (@jon424)
 * [4 years ago](https://wordpress.org/support/topic/trying-to-get-desktop-menu-on-mobile-view/#post-15803390)
 * Actually 🙂 I’m working with Astra theme, and the starter templates plugin that
   i am using is Plant Shop.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Trying to get Desktop Menu on Mobile View](https://wordpress.org/support/topic/trying-to-get-desktop-menu-on-mobile-view/)
 *  Thread Starter [jon424](https://wordpress.org/support/users/jon424/)
 * (@jon424)
 * [4 years ago](https://wordpress.org/support/topic/trying-to-get-desktop-menu-on-mobile-view/#post-15803377)
 * I am working with the Plant Shop theme
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] cannot add product – GUI warped on screen](https://wordpress.org/support/topic/cannot-add-product-gui-warped-on-screen/)
 *  Thread Starter [jon424](https://wordpress.org/support/users/jon424/)
 * (@jon424)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/cannot-add-product-gui-warped-on-screen/#post-15707084)
 * nevermind – i was able to drag and drop those menus back over to the center… 
   🙂
    -  This reply was modified 4 years, 1 month ago by [jon424](https://wordpress.org/support/users/jon424/).
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [wp_register_script / wp_enqueue_script errors](https://wordpress.org/support/topic/wp_register_script-wp_enqueue_script-errors/)
 *  Thread Starter [jon424](https://wordpress.org/support/users/jon424/)
 * (@jon424)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/wp_register_script-wp_enqueue_script-errors/#post-13844664)
 * Thanks for the feedback. I fixed this issue by wrapping everything inside an 
   add_action hook:
 *     ```
       add_action('wp_enqueue_scripts', function(){
             //1. get User Status
             $user_id   = get_current_user_id();
             $user_output =  get_user_meta($user_id, 'needs_extra_item', true);
             //echo $user_output[0];
   
             //2. Register the script
             wp_register_script( 'some_handle', './js/jqueryLaPuerta.js' );
   
             //3. Localize the script with new data
             $some_array = array(
                 'some_string' => __( $user_output, 'plugin-domain' ),
                 'a_value' => '10'
             );
             wp_localize_script( 'some_handle', 'object_name', $some_array );
   
             //4. Enqueued script with localized data.
             wp_enqueue_script( 'some_handle' );
       });
       ```
   

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