Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save wbcomdev/b4553a22f9fcde9c6f18aa92a5ecaab3 to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/b4553a22f9fcde9c6f18aa92a5ecaab3 to your computer and use it in GitHub Desktop.
<?php
/**
* Use below snippet to display content before student status.
*/
function ld_dashboard_student_status_before_call( $curr_user_id ) {
$user_meta = get_userdata( $curr_user_id );
echo '<h2>Current User Role :' . $user_meta->roles[0] . '</h2>';
}
add_action( 'ld_dashboard_student_status_before', 'ld_dashboard_student_status_before_call' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment