wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



add_clean_index › WordPress Function

Da1.0.1
Deprecaton/a
add_clean_index ( $table, $index )
Parametri: (2)
  • (string) $table Database table name.
    Richiesto:
  • (string) $index Database table index column.
    Richiesto:
Ritorna:
  • (true) True, when done with execution.
Definito a:
Codex:

Adds an index to a specified table.



Sorgenti

function add_clean_index( $table, $index ) {
	global $wpdb;

	drop_index( $table, $index );
	$wpdb->query( "ALTER TABLE `$table` ADD INDEX ( `$index` )" );

	return true;
}