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 Links On Comments. | |
*/ | |
function yzc_disable_links_on_comments( $content ) { | |
if ( empty( $content ) ) { | |
return $content; | |
} | |
return preg_replace( '#<a.*?>([^>]*)</a>#i', '$1', $content ); |
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 | |
/** | |
* Limit Wall upload By Member Type. | |
*/ | |
function yzc_limit_wall_upload_by_member_type() { | |
if ( current_user_can( 'administrator' ) ) { | |
return true; | |
} | |
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 Logged-in User Profile as Home Page | |
*/ | |
function yzc_set_profile_page_as_homepage() { | |
if ( is_user_logged_in() && is_front_page() ) { | |
global $bp; | |
wp_redirect( $bp->loggedin_user->domain ); | |
exit; |
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 | |
/** | |
* Mark Specific Users as Online Always In The User Profile Page. | |
*/ | |
function yzc_mark_users_as_online( $is_online, $user_id ) { | |
// List of Always Online Users. | |
$online_users_ids = array( 1, 2, 3 ); |
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 | |
/** | |
* Open Profile Page In A New Tab. | |
*/ | |
function yzc_open_profile_page_in_new_tab() { | |
if ( ! bp_is_user() ) { | |
return; | |
} |
This file has been truncated, but you can view the full file.
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
. | |
.. | |
........ | |
@ | |
* | |
*.* | |
*.*.* | |
🎠|