Help with shortcode in admin-ajax [closed]

How you are applying a filter is wrong. You need to bind a function to the filter, but you are providing a variable.

function my_filter( $content ) {
    return $content . 'My added code';
}
add_filter( 'the_content', 'my_filter' );

You should add the code like this, this should work.