Automattic\WooCommerce\Internal\Admin

CategoryLookup::get_insert_sql()protectedWC 1.0

Get category lookup table values to insert.

Method of the class: 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.

CategoryLookup::get_insert_sql() code WC 9.3.3

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