More tabs for posts and comments

4.63K viewsGeneral
0

I want to add two more tabs in user profile to show blog posts and comments.

Currently I’m using ultimate member to show default profile. I want to replace ultimate member with anspress to show all tabs of anspress as well as tabs of ultimate member. I don’t want to create two profile pages for anspress and ultimate member.

Anspress -> http://eb6.892.myftpupload.com/profile/hqamrul/about/

Ultimate member -> http://eb6.892.myftpupload.com/user/hqamrul/

Guide me how to add two tabs in anspress.

1

Do it just like AnsPress adds all other tabs. Look in sources:

		ap_register_user_page( 'about', __( 'About', 'ap' ), array( $this, 'about_page' ) );
		ap_register_user_page( 'activity-feed', __( 'Activity Feed', 'ap' ), array( $this, 'feed_page' ), true );
		ap_register_user_page( 'notification', __( 'Notification', 'ap' ), array( $this, 'notification_page' ), true, false );
		ap_register_user_page( 'profile', __( 'Profile', 'ap' ), array( $this, 'profile_page' ), true, false );
		ap_register_user_page( 'questions', __( 'Questions', 'ap' ), array( $this, 'questions_page' ) );
		ap_register_user_page( 'answers', __( 'Answers', 'ap' ), array( $this, 'answers_page' ) );
		ap_register_user_page( 'followers', __( 'Followers', 'ap' ), array( $this, 'followers_page' ) );
		ap_register_user_page( 'following', __( 'Following', 'ap' ), array( $this, 'following_page' ) );