WordPress.org

Make WordPress Core

Ticket #11651: testtab.php

File testtab.php, 485 bytes (added by edwardw, 3 years ago)

Example plugin that adds a welcome screen tab

Line 
1<?php
2/*
3Plugin Name: Welcome Screen Test Plugin
4Plugin URI: http://localhost/
5Description: This is a welcome screen test plugin.
6Author:
7Version: 0.1
8Author URI: http://localhost/
9*/
10
11add_filter('admin_welcome_screen_moretabs',function($arr) { $arr['My Plugin\'s Tab'] = 
12'
13<p>This is an additional tab for the welcome screen that can be added by a plugin, such as this test plugin.</p>
14<ul>
15        <li>Test One</li>
16        <li>Test Two</li>
17        <li>Test Three</li>
18</ul>
19
20';
21return $arr;
22 });
23?>