Wordpress : Fatal error: Uncaught ArgumentCountError: Too few arguments to function posts_custom_columns(), 1 passed in

admin

Administrator
Staff member
In wordpress getting following error

<blockquote>
(Fatal error: Uncaught ArgumentCountError: Too few arguments to function posts_custom_columns(), 1 passed in )
</blockquote>

when enabling the featured image in admin list. Here is the code which i have added in functions.php

Code:
add_filter('manage_posts_columns', 'posts_columns');
add_action('manage_posts_custom_column', 'posts_custom_columns');
    function posts_columns($defaults){
    $defaults['wdm_post_thumbs'] = __('Featured Image'); //name of the column
    return $defaults;
}
function posts_custom_columns($column_name, $id){
        if($column_name === 'wdm_post_thumbs'){
        echo the_post_thumbnail(array(75,75)); //size of the thumbnail 
    }
}

While removing this no error. I need to know what was wrong with it ?