Skip to content

Instantly share code, notes, and snippets.

@shubham-99fusion
Last active May 21, 2021 12:13
Show Gist options
  • Select an option

  • Save shubham-99fusion/eca293cd3ec585013e19b2f8d4de87f1 to your computer and use it in GitHub Desktop.

Select an option

Save shubham-99fusion/eca293cd3ec585013e19b2f8d4de87f1 to your computer and use it in GitHub Desktop.
Option will show in member profile date option
add_filter('vibebp_member_profile_data',function($options){
$options['user_article_page'] =__('User Article','vibebp');
return $options;
},10,1);
add_action('vibebp_profile_get_profile_data',function($type,$user_id){
if($type == 'user_article_page'){
echo '<span class="button is-primary user_article_page"><a target="_blank" href="'.get_author_posts_url($user_id).'">'.__('Go to Blog Page','vibebp').'</a></span>';
}
},10,2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment