Guide to the LiveAPI System - The header() Method

Description

The header() method calls the cPanel interface's header. Use this method to add the necessary header buttons at the top of the interface.

Note:

This method is available in cPanel & WHM version 11.46 and later. The app_key parameter is only available in cPanel & WHM version 11.52 and later. This method is only compatible with cPanel's Paper Lantern theme.

Example

 


 

LiveAPI PHP Class

1
2
// Inject the title page and application icon into the header element.
$cpanel->header(title , app_key);




LiveAPI Perl Module

1
2
# Inject the title page and application icon into the header element.
$cpliveapi->header(title , app_key);



Parameters

 Parameter 

 Type 

Description

Possible values

 Example 

title

string

The title of the page to inject into the cPanel interface's <header> element.

A valid HTML page'stitlevalue.

title

app_key

 string 

The app_key value for the application interface that you want to inject into the cPanel interface's <header> element.

Note:

This parameter is only available in cPanel & WHM version 11.52 and later. 

A validapp_keyvalue.

 mx_entry 

 






Returns

This method returns a string value that contains the contents of the interface page before the <header> element.

  • 45 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....