Title: function issue
Last modified: October 21, 2021

---

# function issue

 *  Resolved [mkbarraco](https://wordpress.org/support/users/mkbarraco/)
 * (@mkbarraco)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/function-issue-3/)
 * Hi there,
 * i tried to update your plugin from 2.5.11 to 2.5.15 and my website shows an issue
   about a jQuery function. Can you help me?
 * (function($) { “use strict”; $(document).ready(function($) { mg_grid_filters[“
   61718450ae5dc”] = []; mg_grid_filters[‘61718450ae5dc’][‘mg_pag_’] = { condition:‘
   AND’, val : [1] }; $(window).trigger(“mg_pre_grid_init”, [“61718450ae5dc”, “258”]);
   if(typeof(mg_init_grid) == “function” ) { mg_init_grid(“61718450ae5dc”, 1); }
   $(window).trigger(“mg_post_grid_init”, [“61718450ae5dc”, “258”]); }); })(jQuery);

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

 *  Thread Starter [mkbarraco](https://wordpress.org/support/users/mkbarraco/)
 * (@mkbarraco)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/function-issue-3/#post-14993119)
 * sorry, from 2.0.11 to 2.0.15
 * debug active, no errors found
 *  Plugin Contributor [Md Khalil Uddin](https://wordpress.org/support/users/khalilu/)
 * (@khalilu)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/function-issue-3/#post-14998652)
 * Hi [@mkbarraco](https://wordpress.org/support/users/mkbarraco/),
 * Thanks for reaching us. Hope you are fine.
 * For security purposes, we didn’t allow the script tag. Please use the following
   code in your function.php file to allow the script tag.
 * // allow script to tab editor
 *     ```
       add_filter('sp_wp_tabs_allowed_tags', 'sp_wp_tabs_allowed_tags_modified');
       function sp_wp_tabs_allowed_tags_modified( $allowed_tags ) {
        $allowed_tags['script'] = array();
       return $allowed_tags; }
       ```
   
 * Please let us know if it works or not.
 * Thanks.
 *  Thread Starter [mkbarraco](https://wordpress.org/support/users/mkbarraco/)
 * (@mkbarraco)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/function-issue-3/#post-15002788)
 * [@khalilu](https://wordpress.org/support/users/khalilu/) thanks for your help…
   but I still no see them on backend, only on frontend. Can you help me?
 *  Plugin Support [Bayejid Ahmed](https://wordpress.org/support/users/bayejid00/)
 * (@bayejid00)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/function-issue-3/#post-15020589)
 * Hi [@mkbarraco](https://wordpress.org/support/users/mkbarraco/)
 * The code we provided in the previous reply should work. Can you please try again
   to use the code in your current theme’s functions.php file? Have a look at the
   [screenshot](https://prnt.sc/1xpow9p) for a better understanding. I am sharing
   the code again.
 *     ```
       add_filter('sp_wp_tabs_allowed_tags', 'sp_wp_tabs_allowed_tags_modified');
       function sp_wp_tabs_allowed_tags_modified( $allowed_tags ) {
            $allowed_tags['script'] = array(
                 'type' => array(),
             );
             return $allowed_tags;
        }
       ```
   
 * If you follow the above direction properly, I hope it will work.
 * Have a good day!
 * Thank you.
 *  Plugin Support [Bayejid Ahmed](https://wordpress.org/support/users/bayejid00/)
 * (@bayejid00)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/function-issue-3/#post-15131358)
 * Hi [@mkbarraco](https://wordpress.org/support/users/mkbarraco/),
 * This thread has been inactive for a bit, so I’m going to mark it as Resolved 
   now. Please feel free to open a new one if you have any further questions.
 * Cheers!

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

The topic ‘function issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-expand-tabs-free/assets/icon-256x256.gif?rev=3502431)
 * [Custom Product Tabs for WooCommerce & WordPress Tabs Builder – Smart Tabs](https://wordpress.org/plugins/wp-expand-tabs-free/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-expand-tabs-free/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-expand-tabs-free/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-expand-tabs-free/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-expand-tabs-free/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-expand-tabs-free/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Bayejid Ahmed](https://wordpress.org/support/users/bayejid00/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/function-issue-3/#post-15131358)
 * Status: resolved