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
- Category applied to pages, creates multiple breadcrumb entries after a search query (On the translated site)
- Load More Posts Button – AJAX
- How to filter, restrict and return posts based on custom user meta information
- how to handle multiple ajax wordpress queries?
- WP Query using tax_query & meta_query
- Show post number in widget loop
- 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
- meta_query not working as expected
- New WP_Query calls Pre_get_posts filter twice
- Current post in AJAX call is always zero
- Filter wordpress post categories with jquery/ajax and pagination?
- how to access query string in wordpress?
- Ajax future single post query doesn’t work when NOT logged in
- how update data through ajax and jquery
- Merge two search functions for custom post type
- Make a SQL query with wpdb in WordPress
- 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
- Change AJAX filter from POST to GET for URL Parameters
- Exclude authors IDs from WP_Query
- AJAX Breaking Offset Argument In WP Query
- Apply filters to main query instead of creating new one?
- How to load a script code only in posts?
- Post not populating for custom post type based on category selection
- Multiple meta_key ordering with pre_get_posts
- WP_Query offset is returning post from prevois loop
- How to use a dropdown to filter posts by custom field
- How do I fit WP_Query arguments into a function?
- Create a notification for post field
- How to create a widget like this?
- Does WP_Query ‘responds’ badly to empty arguments?
- Retrieve data from wordpress db via input and put those result in dropdown
- Add URL Rewrite Rule To WordPress
- All Posts Have The Same Comments
- WP_query is not returning the expected result
- Trying to get property of non-object in: $wp_query
- ajax wp_query conditional tags not working
- I need to run a AJAX Fuction from within a WP_Query but only works on first item
- 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
- Add AJAX “Load more” on custom query block
- How to filter a static post page with ajax and $wp_query
- wpquery via ajax
- Ajax (jquery) wp_query pagination returns -1
- 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
- Pagination repeating posts on search results
- How to check if logged in user have pending custom post?
- WordPress live search and filter custom fields
- WordPress live search and filter
- Filter admin ajax data by url query
- WooCommerce | AJAX | Product Pagination | Help me implement Ajax Pagination
- Move some posts to end of sort order, even if there is a sort in the wp_Query already
- 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
- Custom query for custom post type not getting correct post ID
- Ajax buttons not working properly in WooCommerce when using wc_get_template_part
- how to move a page from one drop down menu to another drop down menu
- Load WP Query with Ajax
- How to upload 3 attachments to current post?
- remove_action – pre_get_posts – does not restore original query
- Global page ID variable empty error
- Custom Post type Ajax search results
- How can I show only last year posts in wordpress archive?
- WP_Query & shortcode : Return 3 articles from a category WordPress
- Order & Orderby clause not working with custom query
- Get post Number with local loop and template
- Save query in function for custom gallery
- Is instantiating WP_Query not possible within an admin Ajax call?
- WordPress conflict with multiple load more posts functions on click
- WordPress custom query by archive title
- Show All with Isotope
- Search Filter With Custom Taxonomy and Custom Fields : How do I handle it via plugin?
- Seach and categories not working when ignoring sticky posts in main loop
- Problem with custom WP_Query and underlying pagination/posts_per_page
- Calling a function with WP_Query only ever brings the first result
- What argument does my function need to echo get_results() query results
- how to avoid reloading/refresh the page when displaying the post of wp_list_categories
- modifying the loop multiple times with arguments passed through ajax to wp_query