WordPress at Your Fingertips
function is not described

ActionScheduler_wpPostStore::save_action_group() protected WC 1.0

Save action group.

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

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->save_action_group( $post_id, $group );
$post_id(int) (required)
Post ID.
$group(string) (required)
Group to save.

Code of ActionScheduler_wpPostStore::save_action_group() WC 6.1.1

protected function save_action_group( $post_id, $group ) {
	if ( empty( $group ) ) {
		wp_set_object_terms( $post_id, array(), self::GROUP_TAXONOMY, false );
	} else {
		wp_set_object_terms( $post_id, array( $group ), self::GROUP_TAXONOMY, false );
	}
}