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 | |
// Get user's rank progress | |
function get_mycred_users_rank_progress( $user_id, $show_rank ) { | |
global $wpdb; | |
if ( ! function_exists( 'mycred' ) ) return ''; | |
// Change rank data to displayed user when on a user's profile | |
if ( function_exists( 'bp_is_user' ) && bp_is_user() && empty( $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
/** | |
* Register Custom myCRED Hook | |
* @since 1.0 | |
* @version 1.0 | |
*/ | |
add_filter( 'mycred_setup_hooks', 'Learndash_myCRED_Hook' ); | |
function Learndash_myCRED_Hook( $installed ) { | |
$installed['hook_learndash'] = array( | |
'title' => __( 'LearnDash', 'mycred' ), |