This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Do not notify for join group activity in BP Local group Activity notifier | |
function buddydev_do_not_notify_join_group_activity( $stop_notification, $activity ) { | |
if ( $activity->type == 'joined_group' ) { | |
$stop_notification = true; | |
} | |
return $stop_notification; | |
} | |
add_filter( 'bp_local_group_notifier_skip_notification', 'buddydev_do_not_notify_join_group_activity', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sc_bp_default_group_avatar($avatar) { | |
global $bp, $groups_template; | |
if(strpos($avatar,'group-avatars')) : | |
return $avatar; | |
else : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: bbPress - Add BuddyPress Private Message link after author reply details | |
Plugin URI: https://gist.github.com/ntwb/9887310 | |
Description: bbPress - Add BuddyPress Private Message link after author reply details | |
Version: 0.1 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php /* | |
-------------------------------------------------------------------------------- | |
Plugin Name: BuddyPress Biography Sync | |
Description: Keeps a BuddyPress xProfile field in sync with the WordPress user description field. | |
Author: Christian Wach | |
Version: 0.1 | |
Author URI: http://haystack.co.uk | |
-------------------------------------------------------------------------------- | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Exit if accessed directly | |
defined( 'ABSPATH' ) || exit; | |
function georgio_idea_footer_actions( $footer = '' ) { | |
if ( ! bp_is_group() ) { | |
return $footer; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BuddyPress 2.6.0 introduced a new nav API | |
* with a Backcompat mechanism. But accessing/editing | |
* deprecated globals can lead to such problems... | |
* | |
* It's too bad Theme designers forget to test betas :) | |
*/ | |
function strothi_profile_primary_nav_first() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$new_group = new BP_Groups_Group; | |
$new_group->creator_id = 1; | |
$new_group->name = 'test'; | |
$new_group->slug = 'test'; | |
$new_group->description = 'nothing'; | |
$new_group->news = 'whatever'; | |
$new_group->status = 'public'; | |
$new_group->is_invitation_only = 1; | |
$new_group->enable_wire = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function conditional_bbpress_styles_scripts() { | |
// First check that bbpress exists to prevent fatal errors | |
if ( function_exists( 'is_bbpress' ) ) { | |
//dequeue scripts and styles | |
if ( ! is_bbpress() && ! is_buddypress() ) { | |
wp_dequeue_style('bbp-default'); | |
wp_dequeue_style( 'bbp_private_replies_style'); | |
wp_dequeue_script('bbpress-editor'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'bp_setup_nav', 'jmw_make_edit_default_for_own_bp_profile', 15 ); | |
/* | |
* Edit the buddypress menus | |
*/ | |
function jmw_make_edit_default_for_own_bp_profile() { | |
global $bp; | |
if ( ! bp_is_my_profile() ) { |
NewerOlder