English English
X
You are using an advanced automatic translation tool. Note that although our extensions may be translated into your language (check the product page for that) the support is provided ONLY in english :)

WP Table Manager Developer Documentation

wptm_add_chart

Action create new chart

Parameters :

integer $id Id of chart
string $datas list cell in chart
integer $id_table Id table contant chart

Return :

void

In files :

/app/admin/controllers/chart.php line 67

wptm_change_database_table

Action change data table from database table

Parameters :

array $table_data list information of SQL
integer $id_table Id of table

Return :

void

In files :

/app/admin/controllers/dbtable.php line 105

wptm_copy_table

Action copy table

Parameters :

object $table data table
integer $id Id table

Return :

void

In files :

/app/admin/controllers/table.php line 143

wptm_create_database_table

Action create new table from database table

Parameters :

object $table_data List information of SQL
integer $result Id of table

Return :

void

In files :

/app/admin/controllers/dbtable.php line 82

wptm_delete_table

Action delete table

Parameters :

integer $id Id table

Return :

void

In files :

/app/admin/controllers/table.php line 170

wptm_export_table

Action export table

Parameters :

string $file link file export
integer $id id of table exported

Return :

void

In files :

/app/admin/controllers/excel.php line 517

wptm_import_table

Action before import table

Parameters :

string $file link file import
integer $id_table id of table imported

Return :

void

In files :

/app/admin/controllers/excel.php line 61

wptm_init_action

Action hook init wptm

Parameters :

string WPTM_VERSION Version of wptm

Return :

void

In files :

/app/admin/init.php line 425

wptm_save_changes_role_owner

Action hook save the changes to role owner

Parameters :

integer $id Id of table/category
string $type check table/category
object $data Data of table/category
array $params Id of table/category

Return :

void

In files :

/app/admin/controllers/user.php line 44

wptm_save_table

Action save change data table

Parameters :

integer $id_table Id table
string $datas json string data table

Return :

void

In files :

/app/admin/controllers/table.php line 91

wptm_select_database_table

Action select database tables when create/change table from database

Parameters :

array $tables list name database table selected
array $datas list columns of database table selected

Return :

void

In files :

/app/admin/controllers/dbtable.php line 38

wdt_before_generate_mysql_based_query

Filters hook generate mysql based query

Parameters :

array $table_data Array of query parameters

Return :

array

In files :

/app/admin/models/dbtable.php line 142

wptm_after_render_by_insert

Filter changes table after table/chart created by insert button and before rendering table to page

Parameters :

string $content Content html of table/chart
integer $id Id of table/chart

Return :

string

In files :

/app/site/filters.php line 151

wptm_after_render_by_shortcode

Filter changes table after table/chart created by shortCode and before rendering table to page

Parameters :

string $html Display content of table/chart shortCode
integer $id Id of chart/table

Return :

string

In files :

/app/site/filters.php line 79

wptm_after_replace_chart

Filter hook change html after replace chart

Parameters :

string $content Html content of chart
integer $id_chart Id of chart
object $table_config Data config of table

Return :

string

In files :

/app/site/filters.php line 519

wptm_after_replace_table

Filter hook change html after replace table

Parameters :

string $content html content of table

Return :

string

In files :

/app/site/filters.php line 375

wptm_before_replace_chart

Filter hook change html before replace table

Parameters :

array $data Data of chart
integer $id_chart Id of chart

Return :

array

In files :

/app/site/filters.php line 409

wptm_before_replace_table

Filter hook change html before replace table

Parameters :

array $data Data of table
integer $id_table Id of table

Return :

array

In files :

/app/site/filters.php line 178

wptm_change_result_calculator

Filter changer result of calculator when render table in site, add new calculator in site

Parameters :

string $cellHtml Content of cellContent of cell
string $matches[1] Math symbols of calculator
string $table->id Id of table

Return :

string

In files :

/app/site/helpers/wptmHelper.php line 805

wptm_change_result_convert_date

Filter changer results of day conversion

Parameters :

string|boolean $data_return Results of day conversion
array $date_array Date format
array $number Var of date

Return :

string|boolean

In files :

/app/site/helpers/wptmHelper.php line 965

wptm_changer_htmlTable_before_create

Change the data of the table before creating the table

Parameters :

object $table Data of table

Return :

object

In files :

/app/site/helpers/wptmHelper.php line 329

wptm_check_role_table

Filter wptm_check_role_table change check role table

Parameters :

integer $data Var return
integer $id Id of table
string $check Var check function get checkRoleTable

Return :

integer

In files :

/app/admin/controllers/table.php line 66

wptm_compile_style

Filter hook change data style of table/chart before compile style

Parameters :

array $data Data array of table/chart

Return :

array

In files :

/app/site/helpers/wptmHelper.php line 61

wptm_content_table_read_from_spreadsheet

Filter hook change content of table update from spreadsheet

Parameters :

array $tableContent Content of table
integer $id_table Id of table

Return :

array

In files :

/app/admin/controllers/excel.php line 950

wptm_get_query_and_preview_data

Filters hook get query and preview data

Parameters :

object $result Object returned
array $table_data Array of query parameters

Return :

object

In files :

/app/admin/controllers/dbtable.php line 62

wptm_save_changes_chart

Filters hook save the changes of chart

Parameters :

array $datas Data of chart
integer $id_chart Id of chart

Return :

array

In files :

/app/admin/controllers/chart.php line 38

wptm_style_table_after_render_style

Change style of table before check create style(.css) file and rendering to style(.css) file

Parameters :

string $content content style in file(.css)

Return :

string

In files :

/app/site/helpers/wptmHelper.php line 289

wptm_style_table_before_create_styleFile

Change style of table before check create style(.css) file

Parameters :

object $table Style data of table

Return :

object

In files :

/app/site/helpers/wptmHelper.php line 135

wptm_updateTableFromSpreadsheet

Filter hook change url spreadsheet

Parameters :

string $spreadsheet_url Link url upload table
integer $id_table Id of table upload

Return :

string

In files :

/app/admin/controllers/excel.php line 859