Function not working on the custom message type administration panel

I'm using the code below to add a column to my admin panel. The code works well to display the viewed pages of my messages. The problem is that it does not show the number of views of my custom publication type on my admin panel. I know it counts correctly because I looked in post meta.

// Add to a column in WP-Admin
add_filter (& # 39; manage_posts_columns & # 39 ;, & # 39; posts_column_views & # 39;);
add_action (& # 39; manage_posts_custom_column & # 39 ;, & # 39; posts_custom_column_views & # 39 ;, 5.2);
posts_column_views function ($ defaults) {
$ default['post_views'] = __ (& # 39; Views & # 39;);
returns $ by default;
}
posts_custom_column_views function ($ column_name, $ id) {
if ($ column_name === & # 39; post_views & # 39;) {
echo wpb_get_post_views (get_the_ID ());
}
}