• Resolved dberg89

    (@dberg89)


    Hello,
    To override the plugin profile template I add /ultimate-member/templates/profile.php to my theme directory. That’s great, however, profile.php just calls actions from the core directory like um-actions-profile.php.

    The question is…. if I want to change the layout of the user meta in the profile, how can I hook into um-actions-profile.php without changing the core file? I can add a filter and hook into the individual functions, but how can I simply change one <div> with a filter call? Or do I have to re-write the entire function?

    Thank you

    https://wordpress.org/plugins/ultimate-member/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi,

    You will need to create a new function and remove the existing hook. If you want to add new filters to customize it, you can create a pull request in our public repository:
    https://github.com/ultimatemember/ultimatemember

    Regards,

    Thread Starter dberg89

    (@dberg89)

    Hi
    Thank you for your response. I tried adding a remove_action(‘um_profile_header’, ‘um_profile_header’, 9 ); in my functions.php but it’s not responding and continues to execute the profile header.

    I tried remove_action(‘init’, ‘um_profile_header’, 9 ); thinking it needed to be hooked into init.

    What am I missing?

    Thank you

    Thread Starter dberg89

    (@dberg89)

    Hi
    I tried adding a remove_action(‘um_profile_header’, ‘um_profile_header’, 9 ); in my functions.php but it’s not responding and continues to execute the profile header.

    I tried remove_action(‘init’, ‘um_profile_header’, 9 ); thinking it needed to be hooked into init.

    What am I missing?

    Thank you again

    Thread Starter dberg89

    (@dberg89)

    Issue solved if anyone else is interested in removing a core function.

    add_action ('init', 'remove_functions');
    function remove_functions () {
    	global $ultimatemember;
    	remove_action('um_profile_header', 'um_profile_header', 9 );
    }

    note: priority has to match.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PROFILE customization hooks’ is closed to new replies.