bulk_edit_custom_box not working


WordPress version – 5.4.2

I am working on a custom plugin where I want to add my post meta field in a quick and bulk edit post. I have written a below code. it is quite frustrating for me now because it isn’t going inside callback function of bulk_edit_custom_box as well as for quick_edit_custom_box. I am trying use this simple method and I spent almost 4 hours. I tried to rename the callback function name but still, it isn’t working. Can someone please point out what I am doing wrong here?

add_action( 'bulk_edit_custom_box', 'manage_wp_posts_be_qe_bulk_quick_edit_custom_box', 10, 2 );  function manage_wp_posts_be_qe_bulk_quick_edit_custom_box($  column_name, $  post_type) {   global $  post;   $  postMeta = get_post_meta( $  post->ID, 'accesstype_visibility', true );   if ('accesstype_visibility' == $  column_name && get_post_type() == 'location' ) {       echo  "<fieldset class=\"inline-edit-col-right\" style=\"margin-top: 0;\">";       echo    "<div class=\"inline-edit-col\">";       echo        "<div class=\"inline-edit-group\">";       echo            "<label class=\"alignleft\">";       echo                "<span class=\"title\" for=\"accesstype_visibility\">Accesstype Visibility</span>";       echo                "<input type=\"text\" name=\"accesstype_visibility\" id=\"accesstype_visibility\" value=\"{$  postMeta}\" />";       echo        "</label>";       echo    "</div>";       echo "</fieldset>";   }; }