Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove_action in bp_template_content

  • Avatar of Joernroeder
    joernroeder
    Participant

    @joernroeder

    Hi,

    i try to remove the built-in general-settings Form and replace it with my own, but it didn’t work.

    I don’t know if its the right way…

    I hope for your help

    my functions.php

    if(bp_is_settings_component()) {
    remove_action('bp_template_content', 'bp_core_screen_general_settings_content');
    add_action('bp_template_content', 'load_custom_settings');
    }
    function load_custom_settings() {
    include(TEMPLATEPATH . '/profile/settings/general.php');
    }

    Jörn

You must be logged in to reply to this topic.