ActionScheduler_wpPostStore::save_action_group()protectedWC 1.0

Save action group.

Method of the class: ActionScheduler_wpPostStore{}

No Hooks.

Return

null. Nothing (null).

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.

ActionScheduler_wpPostStore::save_action_group() code WC 9.3.3

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 );
	}
}