I am trying to make an AJAX call for a plugin.

```
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$.post(
    '<?php admin_url('admin-ajax.php'); ?>',
    {
        action : 'AAA'
    },
    function( response ) {
        alert( "[[[[" + response + "]]]]" );
    }
);
}

```

The ajax call is working fine.

```
add_action( 'wp_ajax_nopriv_AAA', 'fAAA' );
add_action( 'wp_ajax_AAA', 'fAAA' );

function fAAA(){
      echo "123";
      die();
}

```

For some reason my fAAA is not getting called.

I used `var_dump( $wp_filter['wp_ajax_nopriv_AAA'] );` to check the actions.
\* in the plugin, it showed that the action is added
\* when i looked in admin-ajax.php, the action is not there.

Any help?