cdbt_after_table_dropped

(CDBT 2.0.0)

cdbt_after_table_droppedテーブルの削除後にフックします

Description

 cdbt_after_table_dropped ( bool $result [, string $table_name ] )
テーブルの削除後にフックします。

Parameters

result
テーブル削除の処理結果を参照できます。
table_name
削除されたテーブル名を参照できます。

History

バージョン 内容
2.0.0 新規追加

Example

<?php
function custom_action_after_drop_table( $result ) {
  if ( ! is_admin() ) {
    $_status = $result ? 'done' :'failed';
    wp_die( $_status );
  }
}
add_action( 'cdbt_after_table_dropped', 'custom_action_after_drop_table' );

Hook Point