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 | |
/** | |
* Set Max Files Size By Member Type. | |
*/ | |
function yzc_edit_files_max_size( $option_value = null, $option_id = null ) { | |
// Get User Member Types | |
$member_type = bp_get_member_type( bp_loggedin_user_id() ); |
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 Tagname to profile username. | |
*/ | |
function yzc_add_username_tag( $username ) { | |
// Get Current User Data. | |
$user = get_userdata( bp_displayed_user_id() ); |
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 | |
/** | |
* Display Posting Form In Friends Wall. | |
*/ | |
add_action( 'bp_before_member_activity_post_form', 'yzc_add_posting_form_in_friends_wall' ); | |
function yzc_add_posting_form_in_friends_wall() { | |
if ( is_user_logged_in() && ! bp_is_my_profile() && bp_is_user() ) { | |
add_filter( 'gettext', 'yzc_change_whats_new_msg', 10 ); |
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 | |
// Show Unearned Badges In The Badges Tab | |
function yzc_add_unearned_badges_to_badges_list() { | |
add_filter( 'mycred_the_badge', 'yzc_mycred_the_badge', 10, 3 ); | |
// Get User ID. | |
$user_id = bp_displayed_user_id(); |
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 | |
/** | |
* Change Images Compression Quality | |
*/ | |
function yzc_attachments_compression_quality( $quality ) { | |
// By default the quality is : 80. | |
return 80; | |
} | |
add_filter( 'yz_attachments_compression_quality', 'yzc_attachments_compression_quality' ); |
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 | |
/* | |
* Blog Comments in Buddypress Activity | |
* WARNING: Test thoroughly if it works in your environment before using in production code. | |
* LICENSE: Public domain | |
*/ | |
/* | |
* When a new comment gets added to the database, add this comment to the |
NewerOlder