Advertisement
vapvarun

Change author url of course and link to BuddyPress Profile

Jul 15th, 2021
1,331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. // Change author url of course
  2. function wbcom_filter_course_author_url( $url ) {
  3.     global $post;
  4.     return bp_core_get_user_domain( get_the_author_meta( 'ID', $post->post_author ) );
  5. }
  6. add_filter( 'lm_filter_course_author_url', 'wbcom_filter_course_author_url', 10 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement