PHP Class WPDKScreenHelp

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

Méthodes publiques

Свойство Type Description
$currentScreen WP_Screen The WordPres current screen

Méthodes publiques

Méthode 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 méthode

Create an instance of WPDKScreenHelp class
public __construct ( ) : WPDKScreenHelp
Résultat WPDKScreenHelp

addTab() public méthode

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 méthode

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

sidebar() public méthode

Return the HTML markup for sidebar
public sidebar ( ) : string
Résultat string

tabs() public méthode

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
Résultat array

Property Details

$currentScreen public_oe property

The WordPres current screen
public WP_Screen $currentScreen
Résultat WP_Screen