Ajax Load More and Masonry: is it possible to load admin-ajax.php in the front end?

You don’t need to specify wp-admin in the path to the admin-ajax.php file. You can simply use array( 'ajaxurl' => admin_url( 'admin-ajax.php' ).

$localiser = array(
    'ajaxurl' => admin_url('admin-ajax.php' ),
  );

Leave a Comment

tech