Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter josealvin

    (@josealvin)

    I follow this steps https://docs.ultimatemember.com/article/119-overriding-default-ultimate-member-profile-templates. But how can I override the core um-actions-members.php?

    Did you create a sub folder called “templates” in the ultimate member folder inside of your theme folder (/theme-folder/ultimate-member/templates/)? You could then override members.php

    • This reply was modified 8 years, 4 months ago by borisv.
    • This reply was modified 8 years, 4 months ago by borisv.
    Thread Starter josealvin

    (@josealvin)

    Yes. That what I did. members.php

    <?php do_action(‘um_members_directory_search’, $args ); ?>
    <?php do_action(‘um_members_directory_head’, $args ); ?>
    <?php do_action(‘um_members_directory_display’, $args ); ?>
    <?php do_action(‘um_members_directory_footer’, $args ); ?>

    I tried to used:
    remove_action(‘publish_post’, ‘old_action’);
    add_action(‘publish_post’, ‘new_action’);

    But it’s not working.

    So what I did is. I just copy the functions from um-actions-members.php to /theme-folder/ultimate-member/templates/members.php placed the four do_action. I’m not sure if it’s the best practices.

    It’s not working because it’s an incomplete action function. At this point I have no idea of what you want to do, and apparently, nobody else knows what you are trying to do either…

    Thread Starter josealvin

    (@josealvin)

    Hi, I just want to modify each um_members_directory_search, um_members_directory_head, um_members_directory_display and um_members_directory_footer.

    I just copied the function of the do_action.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom Search Form’ is closed to new replies.