Update Toolset Types Manually, WHY ???
Hi, If using the Toolset Types plugin, from version 2.2.13, You cannot upgrade to the latest version by automatic update from wordpress plugins repository
Toolset types, 2.2.13 change log: https://wp-types.com/version/types-2-2-13/
You can get this release directly to the WordPress admin or download and install manually. To receive automatic updates, you need to register the Toolset plugins on your site
So, With me, the one who have a lot of WordPress site running with Types plugin. I’m tired to upload the plugin manually to update, then I write the filter to get the update back to default. You can try below. You can add this code to your theme functions.php or Create a plugin to handle this code
// Bypass Toolsettype upgrade function zindo_toolset_type_enable_automatic_upgrade( $value, $option ) { if (is_admin()) { //Only admin $_gz_on = function_exists( 'gzuncompress' ) && function_exists( 'gzcompress' ); if ( is_array( $value ) || empty( $value ) ) { //backward compatibility 1.1 return $tempvar; } else { $value = base64_decode( $value ); if ( $_gz_on ) { $value = gzuncompress( $value ); } $value = unserialize( $value ); } $value['repositories'][ 'toolset' ]['data']['downloads']['plugins']['types']['channel'] = 'production'; $value = serialize( $value ); if ( $_gz_on ) { $value = gzcompress( $value ); } $value = base64_encode($value); } return $value; } add_filter( 'option_wp_installer_settings', 'zindo_toolset_type_enable_automatic_upgrade', 10, 2 );
- Update in August 29, 2017. Fix channel value to work with version 2.2.15.1