• I have created a multisite by wordpress in subdirectory structure. I have to create users for different subsites by ajax.
    I am using wordpress admin ajax but the problem is if I use “admin_url( ajax.php )” then for the subsite it will take subdomain wp-admin url with ajax.php which can not be found in the server. So, if I use “<?php echo get_site_url(1); ?>/wp-admin/admin-ajax.php” instead of “admin_url( ajax.php )” then the ajax will work but the new user will go to main site not for subsites..

    How can I solve this issue?? Please help.

  • The topic ‘How to use wordpress admin ajax for wordpress multisite??’ is closed to new replies.