learndash_set_post_group_membership_groups

learndash_set_post_group_membership_groups( int $post_id,  array $groups_new = array() )

Set the Groups related to the Post for Group Membership.


Description #


Parameters #

$post_id

(int) (Required) Post ID to update.

$groups_new

(array) (Optional) Array of group IDs to set for the Post ID. Can be empty.

Default value: array()


Source #

File: includes/group/ld-groups-membership.php


Changelog #

Changelog
Version Description
3.2.0 Introduced.