Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp-custom.php – Help


  • chrishechler
    Participant

    @chrishechler

    I saw a thread talking about how to iadd custom snippets into the bp-custom.php folder.

    Unfortunately, I am not a coder or expert so I need to ask this probably silly question:

    The thread says to create a folder and put these lines in it and then save it:

    <?php
    // hacks and mods will go here
    ?>

    So where exactly would a code snippet like this go:
    Where do I have to insert a code like this:

    function remove_xprofile_links() {
    remove_filter( ‘bp_get_the_profile_field_value’, ‘xprofile_filter_link_profile_data’, 50, 2 );
    }
    add_action( ‘plugins_loaded’, ‘remove_xprofile_links’ );

    I mean what happenes to the start and end symbols: <?php + ?
    Do I simply enter the code snippet in-between these two?

Viewing 1 replies (of 1 total)

  • Anonymous User 16480907
    Inactive

    @anonymized-16480907

    @chrishechler

    you can add the bp-custom.php file to your WordPress theme or child theme. once you created the file, you can add your code snippet between the start and end symbols: <?php .... ?>

    thanks

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar