WordPress.org

Make WordPress Core

Ticket #35833: test-35833.php

File test-35833.php, 402 bytes (added by Braad, 4 years ago)

A quick plugin for testing this issue, simply adds a table.widefat in the Help tabs

Line 
1<?php
2/**
3 * Plugin Name: Test 35833
4 */
5
6add_action( 'current_screen', 'xxx_test_table_in_help_tab' );
7function xxx_test_table_in_help_tab() {
8    $test_table_args = array(
9        'id'       => 'test_help_table',
10        'title'    => 'Something',
11        'content'  => '<table class="widefat"><tr><td>Something</td></tr></table>',
12    );
13    get_current_screen()->add_help_tab( $test_table_args );
14}