Last active
May 21, 2021 12:13
-
-
Save shubham-99fusion/eca293cd3ec585013e19b2f8d4de87f1 to your computer and use it in GitHub Desktop.
Option will show in member profile date option
This file contains hidden or 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
| 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