Unit Setting Access Date & Time Both fields takes any format

Home Forums Legacy Support Support queries Other issues Unit Setting Access Date & Time Both fields takes any format

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #153386
    bhavindersingh
    Spectator
    Hi Steps: Login as Instructor --> Go to Add/Edit Course --> Click Set Curriculum --> Go to Settings --> Access Date & Time --> Both fields takes any format/numbers/junk characters Solution: date"/> and readonly for time. So I want to rewrite below function. Could you pls suggest the best way for this type of changes without loosing updates. Plugins \vibe-customtypes\includes\WPLMS_tips.php Line 80: add_action('wplms_front_end_unit_settings_form',array($this,'show_date_time_field'),10,1); Line 1734: show_date_time_field($unit_settings){
    #153503
    Diana
    Participant
    @bhavindersingh, You can create a new function and use this hook to implement this function. To prevent your customization from losing, paste this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
    #153506
    bhavindersingh
    Spectator
    I tried the hoke but notable to resolve that the reason i am asking you for proper way-out.
    #153519
    bhavindersingh
    Spectator
    I trace down more then found that function using class.generate_fields.php. I am looking at wrong place. Sorry for Inconvenience. Is there any way to overwrite this file function.
    #153615
    Anshuman Sahu
    Keymaster
    Hi, You can overwrite this function by redefine it in functions.php file. Write code in functions.php file.
    #153690
    bhavindersingh
    Spectator
    Got it Thanks.
    #153748
    Anshuman Sahu
    Keymaster
    Hi, Closing this topic as your issue is resolved.
Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Unit Setting Access Date & Time Both fields takes any format’ is closed to new replies.