Automattic\WooCommerce\Internal\Admin

CategoryLookup::get_insert_sql()protectedWC 1.0

Get category lookup table values to insert.

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

No Hooks.

Return

String.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_insert_sql( $category_id, $category_tree_id );
$category_id(int) (required)
Category ID to insert.
$category_tree_id(int) (required)
Tree to insert into.

Code of CategoryLookup::get_insert_sql() WC 7.1.0

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