cdbt_boolean_data_with_icon

(CDBT 2.0.0)

cdbt_boolean_data_with_iconショートコードで出力される真偽値カラムの表示を変更するフィルター

Description

bool cdbt_boolean_data_with_icon ( bool $bool_data_with_icon [, string $shortcode_name, string $table ] )
ショートコードで出力される真偽値カラムの表示を変更するフィルター。

Parameters

bool_data_with_icon
真偽値カラムの表示にアイコンフォントを使用する場合はTRUE。文字列表示にする場合はFALSEを指定します。初期値はTRUEです。
shortcode_name
フィルター後にレンダリングされるショートコード名を参照できます。
table
ショートコードが処理するテーブル名を参照できます。

History

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

Example

<?php
function my_boolean_data_with_icon( $bool_data_with_icon, $shortcode_name, $table ){
  if ( in_array( $shortcode_name, array( 'cdbt-view', 'cdbt-edit' ) ) && 'prefix_table' === $table ) {
    $bool_data_with_icon = false;
  }
  return $bool_data_with_icon;
}
add_filter( 'cdbt_boolean_data_with_icon', 'my_boolean_data_with_icon', 10, 3 );

Reference

Related Methods

Related Hooks