Add custom touch points

Home Forums Legacy Support Support queries Other issues Add custom touch points

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #262241
    Makarand Mane
    Spectator
    Hi Mr. Vibe I have custom touch points, which are working fine on wp-admin. When  they appear on front end dashboard of user text is missing. As I can see you have used  translate($this->settings[$key]['label'],'vibe') & it seems not working & returning text. Same is happening with your additional touch points too. Text missing
    #262640
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #263123
    Makarand Mane
    Spectator
    Hi Alex, I need to fix few some things quickly, can you tell me how I can fix this now. Why translate function does not return original text?
    #263759
    Anshuman Sahu
    Keymaster
    There is one fix , you have to initialize the filter function before any file loads , i.e on plugins_loaded with priority 1.
    #263952
    Makarand Mane
    Spectator
    Hi @Alex Which filter function I have to initialize before any file loads ?
    #264320
    Anshuman Sahu
    Keymaster
    Use this : add_action( 'bp_include', 'bp_course_init_touch' ); function bp_course_init_touch(){ add_filter('wplms_touch_points','add_commissions_touch_point'); }   function add_commissions_touch_point($touchpoints){ $touchpoints['custom_touch'] = array();//your array here return $touchpoints; }
    #265225
    Makarand Mane
    Spectator
    Hi alex Tried above code but not working. No change. Can you please check at your end & give me correct one,.
    #265228
    Makarand Mane
    Spectator
    Hi alex None of hook will work, you init class bp_course_notifications just after declaration & it calls function get() inside constructor. Which sets array of touch point settings. None of hook is attached on it & it gets array. So any filter is useless here. You need to execute below code inside function bp_course_screen_notification_settings()
    if(isset($lms_settings) && isset($lms_settings['touch'])){
                if(class_exists('lms_settings')){
                    $this->settings = lms_settings::get_touch_points();
                }
            }
    #265489
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #271046
    Makarand Mane
    Spectator
    Is this code added in new update?
    #271562
    Anshuman Sahu
    Keymaster
    Yes its added but update for this has not released yet .
Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Add custom touch points’ is closed to new replies.