__( 'My Tab Title', 'my-text-domain' ), 'url' => 'http://mydomain.com/path/to/url', ); // Advanced Custom tab with content displayed on the Dashboard as an endpoint // NOTE: you'll need to FLUSH PERMALINKS after adding a custom endpoint, if you don't the endpoint will 404! // how to flush permalinks: https://lifterlms.com/docs/how-to-flush-wordpress-rewrite-rules-or-permalinks/ $tabs['my-endpoint'] = array( 'content' => 'my_custom_endpoint_content', // this should be a callable function that outputs your content 'endpoint' => __( 'my-endpoint', 'my-text-domain' ), // endpoint slug (eg: http://mysite.com/my-courses/my-endpoint) 'nav_item' => true, // will add the endpoint to LifterLMS section on WP menu admin pages for use on WP nav menus 'title' => __( 'My Endpoint Title', 'my-text-domain' ), ); // restore the signout tab $tabs['signout'] = $signout; return $tabs; } add_filter( 'llms_get_student_dashboard_tabs', 'my_custom_dashboard_tabs', 10, 1 ); /** * Outputs HTML content for a custom endpoint * @return void */ function my_custom_endpoint_content() { echo '

This is my endpoint content

'; }