ActionScheduler_DBStore::get_group_id( string $slug, bool $create_if_not_exists = true )

Get a group’s ID based on its name/slug.


Description Description


Parameters Parameters

$slug

(Required) The string name of a group.

$create_if_not_exists

(Optional) Whether to create the group if it does not already exist. Default, true - create the group.

Default value: true


Top ↑

Return Return

(int) The group's ID, if it exists or is created, or 0 if it does not exist and is not created.


Top ↑

Source Source

File: packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.