woocommerce_database_max_index_length

woocommerce_database_max_index_length

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_filters('woocommerce_database_max_index_length') is found 1 times:

  • /src/Internal/Utilities/DatabaseUtil.php line 346
    		 * @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 );
    	}
    
    	/**
    	 * Create a fulltext index on order address table.