Skip to content

Commit

Permalink
Added - Track module activation in TG User Tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
NirajChaudhary143 committed Sep 19, 2024
1 parent 4d814d5 commit 94d9a81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion includes/RestApi/controllers/version1/class-evf-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,12 +244,18 @@ public static function install_addons( $slug, $name, $plugin ) {
* @return WP_Error|WP_REST_Response
*/
public static function enable_feature( $slug ) {

// Logic to enable Feature.
$enabled_features = get_option( 'everest_forms_enabled_features', array() );
array_push( $enabled_features, $slug );
update_option( 'everest_forms_enabled_features', $enabled_features );

/**
* Track module installation.
*
* @since xx.xx.xx
*/
do_action( 'evf_feature_track_data_for_tg_user_tracking', $slug );

return array( 'success' => true );
}

Expand Down

0 comments on commit 94d9a81

Please sign in to comment.