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
/** | |
* Force Buddypress Covers Activation. | |
*/ | |
function youzer_activate_buddypress_covers() { | |
return true; | |
} | |
add_filter( 'bp_is_profile_cover_image_active', 'youzer_activate_buddypress_covers', 999 ); | |
add_filter( 'bp_is_groups_cover_image_active', 'youzer_activate_buddypress_covers', 999 ); |
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
.yz-widget, | |
yz-wall-nav, | |
#yz-wall-form, | |
#message-recipients, | |
table.notifications, | |
.yz-my-account-widget, | |
table.messages-notices, | |
.youzer .item-list-tabs, | |
.youzer .activity-list>li, | |
#message-thread .message-box, |
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
.logy .container-wrapper, | |
.youzer .container-wrapper { | |
background: transparent; | |
border: none; | |
padding:0; | |
margin:0; | |
} | |
.youzer #content { | |
margin: 0; |
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
/** | |
* Show All Site Members Count. | |
*/ | |
function youzer_show_all_site_members_count() { | |
return bp_get_total_site_member_count(); | |
} | |
add_filter( 'bp_get_total_member_count', 'youzer_show_all_site_members_count' ); |
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
/** | |
* Exclude Spam Users | |
*/ | |
function youzer_md_exclude_spam_users( $retval ) { | |
global $wpdb; | |
$sql = "SELECT ID FROM {$wpdb->users} WHERE user_status != 0"; | |
$exclude_spam_users = $wpdb->get_col( $sql ); |
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 | |
/** | |
* Translate Text | |
*/ | |
function yz_translate_youzer_text( $translated_text ) { | |
switch ( $translated_text ) { | |
case 'widgets settings' : | |
$translated_text = __( 'Overview Settings', 'youzer' ); | |
break; |
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
/** | |
* Remove The old Font Awesome Versions | |
*/ | |
function youzer_remove_fa_css() { | |
wp_dequeue_style( 'font-awesome-fa' ); | |
wp_dequeue_style( 'uncode-icons' ); | |
} | |
add_action( 'wp_enqueue_scripts' , 'youzer_remove_fa_css', 999 ); |