Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
KaineLabs / youzer-navbar-icons-above-titles.css
Created Dec 26, 2017
Youzer - Navbar Icons above titles
View youzer-navbar-icons-above-titles.css
.yz-profile-navmenu .yz-navbar-item a i {
display: block;
margin: 0 0 10px;
}
.youzer.yz-horizontal-layout .yz-navbar-item a {
min-width: 80px;
}
@media screen and (max-width: 768px) {
@KaineLabs
KaineLabs / yz-redirect-wplogin-to-yzlogin.php
Last active Jul 2, 2020
Redirect "wp-login.php" Page To Youzer Login Page
View yz-redirect-wplogin-to-yzlogin.php
<?php
/**
* Redirect "wp-login.php" Page To Youzer Login Page.
*/
function yz_redirect_wplogin_to_youzer_login_page() {
if ( isset( $_GET['action'] ) && ( $_GET['action'] == 'logout' || $_GET['action'] == 'lostpassword' || $_GET['action'] == 'rp' || $_GET['action'] == 'bp-resend-activation' ) ) {
return;
}
@KaineLabs
KaineLabs / yz-show-buttons-for-non-logged-in-users.php
Last active Jul 26, 2022
BuddyPres - Youzify Add Buttons for non-logged-in users
View yz-show-buttons-for-non-logged-in-users.php
<?php
/**
* BuddyPres - Youzify Add Buttons for non-logged-in users
*/
function youify_add_buttons_for_nonloggedin_users() {
if ( is_user_logged_in() || ! function_exists( 'youzify_get_login_page_url' ) ) {
return false;
}
@KaineLabs
KaineLabs / yz-redirect-loggedin-user-from-home-to-profile.php
Last active Apr 9, 2020
Redirect Logged-in Users from Home Page to Their Profile
View yz-redirect-loggedin-user-from-home-to-profile.php
<?php
function yz_redirect_loggedin_user_from_home_to_profile() {
if ( is_user_logged_in() && ( is_home() || is_front_page() ) ) {
wp_redirect( bp_loggedin_user_domain() );
exit;
}
}
@KaineLabs
KaineLabs / yz-translate-all-members-link.php
Last active May 22, 2021
Translater "All Members" Button Title
View yz-translate-all-members-link.php
View yz-edit-members-directory-link.php
@KaineLabs
KaineLabs / yz-redirect-non-loggedin-user-to-login-page.php
Last active Jul 21, 2018
Redirect Non Logged In Users To Login Page
View yz-redirect-non-loggedin-user-to-login-page.php
<?php
/**
* Redirect Non Logged In Users To Login Page.
*/
function youzer_redirect_nonloggedin_users_to_login_page() {
if ( is_user_logged_in() ) {
return;
}
@KaineLabs
KaineLabs / yz-add-aboutme-widget-head-data.php
Last active Feb 1, 2018
Add About Me Widget - Head Data.
View yz-add-aboutme-widget-head-data.php
/**
* Add About me Head Data.
*/
function youzer_about_me_widget_user_data() {
global $Youzer;
// Get User Dta.
$items = array(
array(
View yz-enable-facebook-profile-url-style.php
<?php
// Enable Root Profiles .
define ( 'BP_ENABLE_ROOT_PROFILES', true );
add_filter( 'bp_core_enable_root_profiles', '__return_true' );
View yz-remove-defer-script.php
/**
* Remove Defer Scripts.
*/
function yz_filter_defer_scripts_on_account_settings() {
if ( ! function_exists( 'bp_current_component' ) || ! bp_current_component() ) {
return false;
}