Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › Modifying Vibes Course Module and update
- This topic has 7 replies, 2 voices, and was last updated 9 years ago by Anshuman Sahu.
Viewing 8 posts - 1 through 8 (of 8 total)
-
AuthorPosts
-
October 23, 2015 at 11:59 am #4408esteebSpectatorGood Morning, I have a question regarding future updates. My developer has modified quite a bit on the Vibe Course Module to make it work for our needs. Now with the new theme update available, I'm afraid to update in case it gets overwritten and also that the other plugins that requires updating might affect the integrity of the modifications. What would be the best solution for future updates? Should we be using the customizer plugin? Your advise would be greatly appreciated. ThanksOctober 24, 2015 at 11:23 am #4701Anshuman SahuKeymasterAll the customizations are recommended to be done in the customizer plugin and in your child theme . if you have modified the code directly of your vibe course module plugin files then all the changes will be lost on update . For the other plugin update ,this will depend on your customization and the other plugins .October 28, 2015 at 12:17 am #5424esteebSpectatorRather than hooking into the predefined hooks, we simply want to overload the existing functions. We have overwritten the following functions: the_course_button get_the_course_details unit_traverse If the plugin were written with the conventional if (!function_exists('p_wpse_95799')) this would not be an issue. However, because that is not the case I had to comment out the plugins in the function before overwriting them in the child theme. Is there a way around directly modifying the plugin as such? Thanks.October 28, 2015 at 1:22 pm #5602Anshuman SahuKeymasterYes if you completely want to modify the key functions then please follow the check functions exists or not and make your modified function t load before the actual functions load .October 28, 2015 at 2:02 pm #5623esteebSpectatorThe child theme functions load before the plugin functions, however, because the core plugin does not include check function exists it bricks the whole website. Is there a way I can prevent those files from loading within the functions.php of the child theme? Are there any expected updates to the plugin that would include check function exists?October 29, 2015 at 1:36 pm #5853Anshuman SahuKeymasterWe have function check on " the_unit " function but do not have any function check on the " the_course_button " . We would include the function check in next update of vibe course module . Can you list the function names that you would override ?November 1, 2015 at 8:12 pm #6365esteebSpectatorThese are the three that we would like to override: <span style="color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;">the_course_button</span><br style="box-sizing: border-box; color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;" /><span style="color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;">get_the_course_details</span><br style="box-sizing: border-box; color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;" /><span style="color: #4b4d4d; font-family: Lato; font-size: 14px; line-height: 22px;">unit_traverse</span> Thanks, LaurenNovember 3, 2015 at 10:27 am #6688Anshuman SahuKeymasterthe_course_button
get_the_course_details
unit_traverse Thanking you for sharing the functions names we will have a check for it in the vibe course module update . -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
- The topic ‘Modifying Vibes Course Module and update’ is closed to new replies.