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 Lost Password Page Link. | |
*/ | |
function yzc_change_lost_password_link( $old_link ) { | |
return 'https://www.yoursite.com/put-new-lost-password-page-link-here'; | |
} | |
add_filter( 'yz_lostpassword_url', 'yzc_change_lost_password_link', 100 ); |
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 | |
// 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 Cover Image Size. | |
*/ | |
function yzc_attachments_get_cover_image_dimensions( $wh ) { | |
return array( 'width' => 1350, 'height' => 350 ); | |
} | |
add_filter( 'bp_attachments_get_cover_image_dimensions', 'yzc_attachments_get_cover_image_dimensions', 99 ); |
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 | |
/** | |
* Disable Buddypress Registration | |
*/ | |
function yzc_disable_bp_registration() { | |
remove_action( 'bp_init', 'bp_core_wpsignup_redirect' ); | |
remove_action( 'bp_screens', 'bp_core_screen_signup' ); | |
} | |
add_action( 'bp_loaded', 'yzc_disable_bp_registration' ); |
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 My Member Directory My Profile Link. | |
*/ | |
function yzc_add_md_my_profile_link() { | |
if ( ! bp_is_members_directory() || ! is_user_logged_in() ) { | |
return; | |
} |
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 Content Above Members Directory. | |
*/ | |
function yzc_add_content_above_members_directory() { | |
// Add content here. | |
echo 'add content here'; | |
} | |
add_action( 'bp_before_directory_members', 'yzc_add_content_above_members_directory' ); |
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 | |
/** | |
* Sync About Me Widget - Image. | |
*/ | |
function yzc_sync_profile_about_me_widget_image( $photo_url = null, $user_id ) { | |
if ( ! empty( $photo_url ) || bp_is_current_component( 'widgets' ) ) { | |
return $photo_url; | |
} |
OlderNewer