PHP Class WPDKScreenHelp

## Overview Usually you have to subclass this class
Author: =undo= ([email protected])
Datei anzeigen Open project: wpxtreme/wpdk

Public Properties

Property Type Description
$currentScreen WP_Screen The WordPres current screen

Public Methods

Method Description
__construct ( ) : WPDKScreenHelp Create an instance of WPDKScreenHelp class
addTab ( string $title, $callable_content ) Add a help tab to current screen
display ( ) Used this method to add tab and sidebar to the screen
sidebar ( ) : string Return the HTML markup for sidebar
tabs ( array $tabs = [] ) : array Return a key value pairs array with the list of tabs

Method Details

__construct() public method

Create an instance of WPDKScreenHelp class
public __construct ( ) : WPDKScreenHelp
return WPDKScreenHelp

addTab() public method

Add a help tab to current screen
public addTab ( string $title, $callable_content )
$title string Tab title. The title is sanitize and used as id

display() public method

Used this method to add tab and sidebar to the screen
public display ( )

sidebar() public method

Return the HTML markup for sidebar
public sidebar ( ) : string
return string

tabs() public method

Return a key value pairs array with the list of tabs
Since: 1.4.18
public tabs ( array $tabs = [] ) : array
$tabs array List of tabs
return array

Property Details

$currentScreen public_oe property

The WordPres current screen
public WP_Screen $currentScreen
return WP_Screen