Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ka2

    (@ka2)

    Thank you for your inquiry.

    You can resolve that by using the filter hook of “cdbt_shortcode_custom_forms”.
    Please try to use sample code below as reference.

    function cdbt_edit_custom_forms( $elements_options, $shortcode_name, $table ){
      $target_table = 'your_table_name';
      $hidden_cols = [ 'hide_column1', 'hide_column2' ];
      if ( $target_table === $table ) {
        foreach ( $elements_options as $_i => $_option ) {
          if ( in_array( $_option['elementName'], $hidden_cols ) ) {
            $elements_options[$_i]['elementType'] = 'hidden';
          }
        }
      }
      return $elements_options;
    }
    add_filter( 'cdbt_shortcode_custom_forms', 'cdbt_edit_custom_forms', 10, 3 );

    Also this filter hook will be enabled the shortcode of “cdbt-entry”, too. So it’s cons of current plugin, I’m going to improve that at future.

    Thank you,

    Thread Starter dwegner

    (@dwegner)

    Works great! Thanks.

    Plugin Author ka2

    (@ka2)

    I closed this ticket because that has resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Columns in Modal Edit’ is closed to new replies.