Skip to content

Commit

Permalink
PROD-7937 - Moved code
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrabanjara1991 committed Oct 2, 2024
1 parent 59679ec commit 6baae8b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/bp-core/admin/bp-core-admin-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,16 +537,3 @@ function bb_upgrade_dismiss_notice() {
}

add_action( 'wp_ajax_bb_upgrade_dismiss_notice', 'bb_upgrade_dismiss_notice' );

/**
* Function to load in-plugin notification class.
*
* @since BuddyBoss [BB_VERSION]
*/
function bb_in_plugin_notification() {
if ( class_exists( 'BB_In_Plugin_Notifications' ) ) {
return new BB_In_Plugin_Notifications();
}
}

add_action( 'bp_init', 'bb_in_plugin_notification' );
13 changes: 13 additions & 0 deletions src/bp-core/bp-core-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1225,3 +1225,16 @@ function bb_reset_upgrade_notice_on_admin_logut( $user_id ) {
}

add_action( 'wp_logout', 'bb_reset_upgrade_notice_on_admin_logut' );

/**
* Function to load in-plugin notification class.
*
* @since BuddyBoss [BB_VERSION]
*/
function bb_in_plugin_notification() {
if ( class_exists( 'BB_In_Plugin_Notifications' ) ) {
return new BB_In_Plugin_Notifications();
}
}

add_action( 'bp_init', 'bb_in_plugin_notification' );

0 comments on commit 6baae8b

Please sign in to comment.