• Hello,

    i want to override the um-fields.php in the core folder to add

    if($array['required'] == 1) { $array['classes'] .= ' um-is-required'; }
            else if($array['required'] == 0) { $array['classes'] .= ' um-not-required'; }

    on line 612.
    I want to use an override file that i am able to update ultimate member without having problems with my changes.
    The problem is now, i tried it in
    wp-content/themes/mytheme/ultimate-member/core/um-fields.php
    and
    wp-content/themes/mytheme/plugins/ultimate-member/core/um-fields.php
    but its not loaded.

    How to override this correctly?
    Thank you very much in advance!

    https://www.ads-software.com/plugins/ultimate-member/

Viewing 9 replies - 1 through 9 (of 9 total)
  • I’m also having issue with overriding the core files. Did you by chance resolve this issue?

    I’m trying to edit the ‘um-actions-profile.php’ file, but I can’t seem to find the write folder to put it in.

    I’ve tried putting it in:

    themes/child-themes/ultimate-member/templates
    themes/child-themes/ultimate-member/core
    themes/child-themes/ultimate-member

    but all to no avail. Please help!

    Also, this is just for a local site I have on my computer to practice.

    Thanks, and much appreciated!

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi,

    You cannot override the core files in the child theme. That approach is only allowed for /ultimate-member/templates/. You should use the Ultimate Member filter and actions hooks. What do you want to change in the fields and profile?

    Regards,

    @champ Camba

    Yeah, I was actually able to use the filter and actions hooks to cooperate.

    I was just trying to move the User Name above the user profile. I figured it out though. I appreciate the response. Thanks!

    @imthatguydavid can you elaborate on how you did that a little

    Plugin Author Ultimate Member

    (@ultimatemember)

    Thanks for letting us know you got it working as you want it ??

    Thread Starter firehold

    (@firehold)

    Funny, i ask a question and get no answer, and after 1 week another one ask a question in my thread and he gets directly support.

    Anyway, so when i follow you it is not possible to override a core-file.
    But how to add the code i wrote in my first post to the file, without having issues with updating?

    Thank you very much in advance!

    Plugin Author Ultimate Member

    (@ultimatemember)

    Sorry firehold. Caused by other people posting in a topic. You can add code to functions.php file.

    Thanks

    Thread Starter firehold

    (@firehold)

    Sorry firehold. Caused by other people posting in a topic. You can add code to functions.php file.

    Thanks

    Thank you for your reply, but that was not my question.
    Also the functions.php doesnt stay untouched with updates.
    Additional i need to add/change outputs in other files. So the question was is it possible to override the core files with overrides and if yes how?
    Thank you again in advance ??

    Plugin Author Ultimate Member

    (@ultimatemember)

    You can use functions.php if using child theme. you can also use a plugin if not using child theme. Such as: https://www.ads-software.com/plugins/my-custom-functions/

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Core override how?’ is closed to new replies.