ActionScheduler_DBStore::create_group()protectedWC 1.0

Create an action group.

Method of the class: ActionScheduler_DBStore{}

No Hooks.

Return

Int. Group ID.

Usage

// protected - for code of main (parent) or child class
$result = $this->create_group( $slug );
$slug(string) (required)
Group slug.

ActionScheduler_DBStore::create_group() code WC 8.7.0

protected function create_group( $slug ) {
	/** @var \wpdb $wpdb */
	global $wpdb;
	$wpdb->insert( $wpdb->actionscheduler_groups, array( 'slug' => $slug ) );

	return (int) $wpdb->insert_id;
}