These two lines are wrong:
add_action('wp_ajax_get_data', mm_get_all_informations);
add_action('wp_ajax_nopriv_get_data', mm_get_all_informations);
You need to quote the function name:
add_action('wp_ajax_get_data', 'mm_get_all_informations');
add_action('wp_ajax_nopriv_get_data', 'mm_get_all_informations');
If you had debugging enabled, as you should when you are working, you would have spotted the problem immediately.
Related Posts:
- ajax category filter
- How to get user_id from wordpress database inside ajax function?
- Loading two different AJAX requests on two different pages
- Getting the post terms ‘wp_get_post_terms’ per post when within the functions.php file
- How to get post category list as select in front-end?
- WordPress dynamic AJAX query
- Finding post ID dynamically on click
- Fetching $_POST from Page Template into functions.php
- Declare inline background image in functions.php
- I wan to process the following js to process the AJAX Request on my function to calculate author Total Post views
- WordPress 4.9.5 PHP intermittent warning trim() expects parameter 1 to be string, array given
- Ajax and WP_Query/tax_query parameter
- Pagination custom query
- get data from wp-query, outside the loop & without url change
- Shortcode returns escaped HTML tags
- ‘posts_where’ filter not applying ‘WP_Query’ in `wp_ajax`
- Ajax Infinite Scroll In Custom WP_Query Loop Not Working
- How to get any tag ID
- WP_Query class not found
- Search – Ajax – Alter Query Parameters with Pagination
- How to target the default Recent Posts and Recent Comments widgets with pre_get_posts?
- How can i make WP_Query return post image and categories?
- WP_Query orderby breaks when using AJAX?
- Ajaxing function in widget class
- Update Loop with Form
- Refine/Filter WP_Query Posts with jQuery or Ajax
- Show selected images on top in Media Manager
- posts_per_page not working
- Create unique page without header.php for json feed
- Exclude admin from WP_Query Contributors
- WP_Query ajax loader detect end of posts
- wp_query not searching with apostrophe
- Multiple Loops Inside a Function
- How to delete taxonomy term when a wordpress user is removed?
- Exclude category for main query and custom
- Ajax Pagination on Ajax filter
- Wp_query returning only one post while query through ajax
- Ajax load more posts – WP_Query parameters not working
- How to detect if query is runned from widget?
- Most commented last 24h, week, month, year and all time – posts_where
- Ajax load more button in Recent posts widget
- Load More Posts Button – AJAX
- Ajax WP_Query reutrns no results on author.php
- wordpress search word, “hello world” ===> ‘hello+world’ ===> ‘hello’, ‘world’
- Display most popular in the past two days
- New WP_Query calls Pre_get_posts filter twice
- Current post in AJAX call is always zero
- Ajax future single post query doesn’t work when NOT logged in
- how update data through ajax and jquery
- how to use pre_gets_posts to exclude one queried ID from homepage loop
- Use Ajax To filter posts?
- date_query in pre_get_posts out of memory
- Exclude authors IDs from WP_Query
- AJAX Breaking Offset Argument In WP Query
- Multiple meta_key ordering with pre_get_posts
- WP_Query offset is returning post from prevois loop
- Does WP_Query ‘responds’ badly to empty arguments?
- All Posts Have The Same Comments
- Trying to get property of non-object in: $wp_query
- ajax wp_query conditional tags not working
- relation OR instead of AND – Filtered term ID’s in loop
- Widget only in first post
- Change post query onclick
- How to add a recent post function to a text widget I created for practice?
- Widgets: Show Recent Posts Only if the Posts Have Both Categories X and Y
- How to pass the current content of $wp_query to a new page?
- JOIN filter doesn’t work in WP_Query in wp-ajax calls
- WordPress AJAX Request returns 400
- WordPress Ajax form filter | Search by title with ajax form, breaks the other filters
- Why when I using infinity scroll the one post loads over and over?
- Using Ajax and WP_Query to load more posts on category page fails
- Ajax filter with loadmore button
- How to check if logged in user have pending custom post?
- WordPress live search and filter custom fields
- WordPress live search and filter
- WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination
- Custom WordPress post query for displaying time-released content on website
- SEARCH QUERY PLEASE HELP | call_user_func_array() expects parameter 1 to be a valid callback php
- How to upload 3 attachments to current post?
- remove_action – pre_get_posts – does not restore original query
- Custom Post type Ajax search results
- How can I show only last year posts in wordpress archive?
- Get post Number with local loop and template
- WordPress custom query by archive title
- Calling a function with WP_Query only ever brings the first result
- how to avoid reloading/refresh the page when displaying the post of wp_list_categories
- How to get query results for the next page
- Why is $wp_query fetching nothing?
- Hiding all posts/products/pages from a site based on a custom taxonomy/domain name
- wp_query in form method of widget breaks customizer
- Inline Ajax call after term is appended with a @ or # etc. displayed in div
- List sibling pages widget, exclude current page
- Why WP_Query in functions.php is not working when get_posts works?
- How return normal search result using wp_ajax action for wordpress
- Adding css tweak based on page template
- WordPress WP_User_Query ignores the `meta_query` when called from an Ajax function
- Variations as Single Products [closed]
- Wp_query to get woocomerce product categorys [closed]
- AJAX multiple search boxes not merging with array merge
- Excluding a category from frontpage but not from WP_Query