Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Help: bp-custom.php (3 posts)

Started 1 year, 12 months ago by: Shnooka30

  • Profile picture of Shnooka30 Shnooka30 said 1 year, 12 months ago:

    I’m trying to hide buddypress widgets and never created a bp-custom.php file before.

    Is this correct? I keep getting a white screen when i upload (bp-custom.php) into my plug-ins directory.

  • Profile picture of Shnooka30 Shnooka30 said 1 year, 12 months ago:

    //CUSTOM CODE FOR BUDDYPRESS
    // Remove buddypress widgets from blogs other than the main blog
    function hide_bp_widgets() {
    if (!is_main_blog()) remove_all_actions(‘bp_register_widgets’);
    }
    add_action(‘plugins_loaded’, ‘hide_bp_widgets’, 1); // Has to run before bp_setup_widgets()

  • Profile picture of rich! @ etiviti rich! @ etiviti said 1 year, 12 months ago:

    testing that really quick…
    Fatal error: Call to undefined function is_main_blog() in D:xampplitehtdocsbuddypresswp-contentpluginsbp-custom.php on line 4