Jquery UI tabs
Disable ui tabs menu
$("#tabs").tabs("option","disabled", [0, 1]); // Option 1
$( "#tabs" ).tabs( "disable", "#tabs-2" ); // Option 2
$( '#tabs li.disabled-tab' ).addClass( 'ui-state-disabled' ); // Option 3
Warning: sprintf(): Too few arguments in \wp-admin\includes\class-bulk-upgrader-skin.php on line 152 error from TGM Plugin Activation. To fixed this error is just need to edit the files describe on the screenshot. To edit just fine the `skin_update_successful` just like the image below. Make sure to remove the `onclick=”%2$s”` codes on 2 elements. Make sure you are…
How to get paid membership pro membership level ID? Copy the codes below. function get_user_member_level_id( $userid ){ global $wpdb; return $wpdb->get_var( "SELECT membership_id FROM wp_pmpro_memberships_users WHERE user_id = $userid" ); } echo get_user_member_level_id( $userid );
All of the codes below will be place on your function.php Change number of products displayed per page add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 1000;' ), 20 ); Archive columns global $woocommerce_loop; $woocommerce_loop['columns'] = 4; // Change the product category list column to 4. Archive columns with body class add_filter('body_class','archive_columns'); function archive_columns($classes) { global $woocommerce_loop; $classes[]…
First is you must have the browser.php in your current themes. If not, click here and create a file named browser.php in your current themes. Copy the codes below and place it into your function.php file. add_filter('body_class','browser_name_class'); function browser_name_class($classes) { $browser = new Browser(); $browser_detect_replace = str_replace( ' ', '-', $browser->getBrowser('browser_name:Browser:private') ); $browser_name = strtolower(…
html5shiv.googlecode.com/svn/trunk/html5.js or simply copy the code below and paste it into your header.php <!–[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]–>
Fatal error: Allowed memory size is showing if the default WordPress or hosting allocated memory is reach. In some case this can be fix via wp-config.php, php.ini, or .user.ini. If the error is still not fixed, better to contact your hosting provider and let them fix the error. This is my error: Fatal error: Allowed…