Forums

Disable wp-admin interface for inline ajax calls (3 posts)

  1. pagex
    Member
    Posted 1 year ago #

    I have a sidebar in the wp-admin called as follows...

    add_action('admin_menu', 'load_menu');

    I click on a link in the menu and the page loads. From there I have a list of products with 'edit' link next to each. Clicking the 'edit' link loads a form to modify product details inside an inline Ajax window.

    The problem I'm having is that it also loads the full wp-admin interface nested inside this window. Can someone please tell me how I would go about disabling the wp-admin interface and ONLY display the content requested? I've been banging my head against the wall for days on this one.

    Any help would be great!

  2. pagex
    Member
    Posted 1 year ago #

    Sorry for the bump.

    Anyone?

  3. WPsites
    Member
    Posted 1 year ago #

    You should take a look at http://codex.wordpress.org/AJAX_in_Plugins

    If in your ajax you are calling your form through the root admin url then its going to have the admin interface around it. You need to be calling wp-admin/admin-ajax.php which doesn't display the theme.

Topic Closed

This topic has been closed to new replies.

About this Topic