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
<?php | |
/** | |
* Disable Confimation Messages and E-mail. | |
**/ | |
function yzc_disable_bp_confirmation_email() { | |
return false; | |
} | |
add_filter( 'bp_registration_needs_activation', 'yzc_disable_bp_confirmation_email' ); |
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
<?php | |
/** | |
* Set Activity Comments Length - Show the latest 2 comments. | |
*/ | |
function yzc_set_activity_comments_length() { ?> | |
<script type="text/javascript">window.youzify_comments_length = 2;</script> | |
<?php |
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
<?php | |
/** | |
* Limit Profile Tab By Member Type. | |
*/ | |
function yzc_limit_profile_tab_by_member_type() { | |
// Get User Member Type | |
$member_type = bp_get_member_type( bp_displayed_user_id() ); | |
// Remove Tabs By Member Type | |
if ( 'member_type_id_here1' != $member_type ) { |
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
/** | |
* 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 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
<?php | |
// Force Youzify Template | |
add_action( 'bp_loaded', 'youzify_bp_overload_templates' , 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
<?php | |
/** | |
* Youzify - Fix Enfold Theme "Add Media" Button | |
* */ | |
function yzc_fix_frontend_submission_editor( $default ) { | |
if ( bp_current_component() ) { | |
return 'force_mediaelement'; | |
} |
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
<?php | |
// Enable Block Based Theme Template | |
function yzc_override_youzify_template_using_block_based_template() { | |
ob_start(); | |
wp_head(); |
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
<?php | |
/** | |
* Youzify - BuddyPress Notify Users on New Activities. | |
*/ | |
add_action( 'youzify_after_adding_wall_post', 'yzc_notify_users_on_activities', 999 ); | |
function yzc_notify_users_on_activities( $activity_id ) { | |
$subject = "New activity posted!"; | |
$message = 'New activity has been posted, please visit ' . bp_activity_get_permalink( $activity_id ); | |
// Get all users. |
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
<?php | |
/** | |
* Add Activity Custom Post Type. | |
*/ | |
class YZC_Activity_Custom_Post_Type { | |
public $post_title; | |
public $post_type; | |
public $post_action; | |
public $enable_upload_attachments; |
NewerOlder