Created
October 9, 2025 11:28
-
-
Save propertyhive/15c754e7395fd5f8e6c6e7bcd3dca844 to your computer and use it in GitHub Desktop.
Hide Kato Units Table Columns
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_filter( 'propertyhive_import_kato_units_description_table_header_columns', 'remove_header_cols'); | |
| function remove_header_cols($header_columns) | |
| { | |
| if ( isset($header_columns['rent']) ) { unset($header_columns['rent']); } | |
| if ( isset($header_columns['availability']) ) { unset($header_columns['availability']); } | |
| return $header_columns; | |
| } | |
| add_filter( 'propertyhive_import_kato_units_description_table_data_columns', 'remove_data_cols', 10, 3); | |
| function remove_data_cols($data_columns, $post_id, $property) | |
| { | |
| if ( isset($data_columns['rent']) ) { unset($data_columns['rent']); } | |
| if ( isset($data_columns['availability']) ) { unset($data_columns['availability']); } | |
| return $data_columns; | |
| } | |
| add_filter( 'propertyhive_import_kato_units_description_table_total_data_columns', 'remove_total_cols', 10, 3); | |
| function remove_total_cols($total_columns, $post_id, $property) | |
| { | |
| if ( isset($total_columns['rent']) ) { unset($total_columns['rent']); } | |
| if ( isset($total_columns['availability']) ) { unset($total_columns['availability']); } | |
| return $total_columns; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment