woocommerce_database_max_index_length
woocommerce_database_max_index_length
Appears in: woocommerce.8.1.1
Hook Type: filter
Displaying hooks found in version: woocommerce.8.1.1apply_filters('woocommerce_database_max_index_length') is found 1 times:
- /src/Internal/Utilities/DatabaseUtil.php line 290
Warning: Undefined array key 294 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
Warning: Undefined array key 295 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167
* @param int $max_index_length Maximum index length. Default 191. * * @since 8.0.0 */ $max_index_length = apply_filters( 'woocommerce_database_max_index_length', 191 ); // Index length cannot be more than 768, which is 3078 bytes in utf8mb4 and max allowed by InnoDB engine. return min( absint( $max_index_length ), 767 ); } }