Last active
April 17, 2024 18:32
-
-
Save bkatusic/f3413a36b0fe7c2038a21370480ad475 to your computer and use it in GitHub Desktop.
Displays the Notes content in Manage Sites tale
This file contains 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( 'mainwp_sitestable_display_row_columns', 'mycustom_mainwp_sitestable_display_row_columns', 10, 3 ); | |
function mycustom_mainwp_sitestable_display_row_columns( $false_val , $column, $website ){ | |
if( 'notes' === $column && ! empty( $website['note'] ) ){ | |
$note = wp_strip_all_tags( html_entity_decode( $website['note'] ) ); | |
return substr( $note, 0, 50 ); | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment