WordPress at Your Fingertips
function is not described

ActionScheduler_DBStore::create_group() protected WC 1.0

Create an action group.

{} It's a method of the class: ActionScheduler_DBStore{}

No Hooks.


Int. Group ID.


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

Code of ActionScheduler_DBStore::create_group() WC 6.1.1

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

	return (int) $wpdb->insert_id;