Changeset 1805516
- Timestamp:
- 01/19/2018 04:33:35 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display-content-length/trunk/display-content-length.php
r1805503 r1805516 43 43 add_action( 'manage_post_posts_custom_column', function ( $column_name, $post_id ) 44 44 { 45 if ( $column_name == 'wpse_post_content_length') 46 echo mb_strlen( get_post( $post_id )->post_content ); 47 45 if ( $column_name == 'wpse_post_content_length'){ 46 $strlen = mb_strlen( get_post( $post_id )->post_content ); 47 echo number_format($strlen); 48 } 48 49 }, 10, 2 ); 49 50
Note: See TracChangeset
for help on using the changeset viewer.