td_api_module::delete

Available on: Newspaper V11+

This api call is used to delete one of the existing modules.

Usage:

<?php td_api_module::delete( $id ) ?>

Parameters:

$id (string) (required)

  • the module id – has to match with one of the modules which are already registered in the theme

Examples:

In the following example we’ll delete the existing <em>Module 1</em> , you can see how the code looks on plugin:

td_api_module::delete('td_module_flex_1');