- Custom DataBase Tables
- CDBT Version 2.x
- アクションフック一覧
- cdbt_after_table_duplicated
cdbt_after_table_duplicated
(CDBT 2.0.0)
cdbt_after_table_duplicatedテーブルの複製後にフックします
Description
cdbt_after_table_duplicated ( bool $result [, string $replicate_table, string $origin_table ] )テーブルの複製後にフックします。
Parameters
- result
- テーブル複製の処理結果を参照できます。
- replicate_table
- 複製先のテーブル名を参照できます。
- origin_table
- 複製元のテーブル名を参照できます。
History
| バージョン | 内容 |
|---|---|
| 2.0.0 | 新規追加 |
Example
<?php
function custom_action_after_duplicate_table( $result, $replicate_table, $origin_table ) {
if ( $result ) {
printf( 'A copy of the table "%s" was created by the table named "%s".', $origin_table, $replicate_table );
}
}
add_action( 'cdbt_after_table_duplicated', 'custom_action_after_duplicate_table', 10, 3 );
Hook Point
- duplicate_table()複製テーブルを作成します