This file contains hidden or 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 yz_edit_members_directory_link( $link ) { | |
return 'https://www.authorprinar.com/members/type/authors'; | |
} | |
add_filter( 'bp_get_members_directory_permalink', 'yz_edit_members_directory_link' ); |
This file contains hidden or 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
/** | |
* Add About me Head Data. | |
*/ | |
function youzer_about_me_widget_user_data() { | |
global $Youzer; | |
// Get User Dta. | |
$items = array( | |
array( |
This file contains hidden or 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 Defer Scripts. | |
*/ | |
function yz_filter_defer_scripts_on_account_settings() { | |
if ( ! function_exists( 'bp_current_component' ) || ! bp_current_component() ) { | |
return false; | |
} |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 ); |
This file contains hidden or 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
/** | |
* Change Invalid Username Message. | |
*/ | |
function yz_change_signup_invalid_username_error( $data ) { | |
// Get Username | |
$username = $data['user_name']; | |
if ( preg_match('/[^a-z_\-0-9]/i', $username ) ) { | |
// Get Erros. |
OlderNewer