Child pages
  • Guide to Standardized Hooks - Scripts Functions
Skip to end of metadata
Go to start of metadata

Introduction

The scripts category's events occur when email scripts run.

addpop


Note:

We introduced this standardized hook in cPanel & WHM version 80.

This event takes place when the /usr/local/cpanel/scripts/addpop script creates the email account.

Available Stages:

  • pre — Hook action code runs before the /usr/local/cpanel/scripts/addpop script creates the email account.
  • post — Hook action code runs after the /usr/local/cpanel/scripts/addpop script creates the email account.

Action Code Runs As:

test

Blocking Attribute:

Escalate Privileges Attribute:

Returns

This event does not return output.

delpop


Note:

We introduced this standardized hook in cPanel & WHM version 80.

This event takes place when the /usr/local/cpanel/scripts/delpop script deletes the email account.

Available Stages:

  • pre — Hook action code runs before the /usr/local/cpanel/scripts/delpop script deletes the email account.
  • post — Hook action code runs after the /usr/local/cpanel/scripts/delpop script deletes the email account.

Action Code Runs As:

root

Blocking Attribute:

Escalate Privileges Attribute:

Returns

This event does not return output.