Automattic\WooCommerce\Internal\Admin

CategoryLookup::get_insert_sql()protectedWC 1.0

Get category lookup table values to insert.

Метод класса: CategoryLookup{}

Хуков нет.

Возвращает

Строку.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_insert_sql( $category_id, $category_tree_id );
$category_id(int) (обязательный)
Category ID to insert.
$category_tree_id(int) (обязательный)
Tree to insert into.

Код CategoryLookup::get_insert_sql() WC 8.7.0

protected function get_insert_sql( $category_id, $category_tree_id ) {
	global $wpdb;
	return $wpdb->prepare( '(%d,%d)', $category_id, $category_tree_id );
}