3
votes
learndash group leader tags
Would like to add: Group Leader tags (ie: when group leader assigned – assign tag, when group leader removed, remove tag) to the LearnDash Group Settings
Got an idea for a new feature or integration? We’d love to hear it! You can find our roadmap here.
Would like to add: Group Leader tags (ie: when group leader assigned – assign tag, when group leader removed, remove tag) to the LearnDash Group Settings
Added some code to: class-learndash.php
function group_settings_fields – this seemed to take care of it.
but – we now need more code to track group leader assignment / removal
‘leader_tag’ => array(
‘name’ => ‘leader_tag’,
‘label’ => __( ‘Link with Tag’, ‘wp-fusion’ ),
‘type’ => ‘multiselect’,
‘multiple’ => ‘true’,
‘display_callback’ => array( $this, ‘display_wpf_tags_select’ ),
‘desc’ => sprintf( __( ‘This tag will be applied in %1$s when a group leader is assigned, and will be removed when a group leader is removed. Likewise, if this tag is applied to a user from within %2$s, they will be automatically assigned Leader of this group. If this tag is removed, the leader will be removed from the group.’, ‘wp-fusion’ ), wp_fusion()->crm->name, wp_fusion()->crm->name ),
‘limit’ => 1,
‘help_text’ => sprintf( __( ‘For more information on these settings, %1$ssee our documentation%2$s.’, ‘wp-fusion’ ), ‘‘, ‘‘ ),
),
Duplicate of https://wpfusion.com/feature-requests/apply-tags-for-learndash-group-leader/. Closing.