Title: Ajax Load More: REST API
Author: Darren Cooney
Published: <strong>08.03.2017</strong>
Last modified: 05.06.2025

---

Поиск плагинов

![](https://ps.w.org/ajax-load-more-rest-api/assets/banner-772x250.jpg?rev=2848164)

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

![](https://ps.w.org/ajax-load-more-rest-api/assets/icon-128x128.png?rev=2848164)

# Ajax Load More: REST API

 Автор: [Darren Cooney](https://profiles.wordpress.org/dcooney/)

[Скачать](https://downloads.wordpress.org/plugin/ajax-load-more-rest-api.1.2.6.zip)

 * [Детали](https://ru.wordpress.org/plugins/ajax-load-more-rest-api/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/ajax-load-more-rest-api/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/ajax-load-more-rest-api/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/ajax-load-more-rest-api/#developers)

 [Поддержка](https://wordpress.org/support/plugin/ajax-load-more-rest-api/)

## Описание

The REST API extension will enable compatibility between Ajax Load More and the 
WP REST API plugin.

Easily access your website data (as JSON) through an HTTP REST API and display the
results using the beauty of infinite scrolling with Ajax Load More.

https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/

#### How It Works

The REST API add-on works by routing the standard Ajax Load More admin-ajax.php 
requests through to API endpoints for data retrieval. The data is returned as JSON,
then parsed and displayed using Underscore.js styled templates on the front-end 
of your website.

Using a simple GET request, a JavaScript Repeater Template and a custom endpoint(/
wp-json/ajaxloadmore/posts) developed specifically for Ajax Load More, users are
able to access website data and infinite scroll the results using the WP REST API.

**[View Example](https://connekthq.com/plugins/ajax-load-more/examples/rest-api-example/)**

## Установка

#### Uploading in WordPress Dashboard

 1. Navigate to the ‘Add New’ in the plugins dashboard
 2. Navigate to the ‘Upload’ area
 3. Select `ajax-load-more-rest-api.zip` from your computer
 4. Click ‘Install Now’
 5. Activate the plugin in the Plugin dashboard

#### Using FTP

 1. Download `ajax-load-more-rest-api.zip`.
 2. Extract the `ajax-load-more-rest-api` directory to your computer.
 3. Upload the `ajax-load-more-rest-api` directory to the `/wp-content/plugins/` directory.
 4. Ensure Ajax Load More is installed prior to activating the plugin.
 5. Activate the plugin in the WP plugin dashboard.

## Часто задаваемые вопросы

### What is a Namespace in an API endpoint?

Namespaces are the first part of the URL for the endpoint. Namespaces allows for
two plugins to add a route of the same name, with different functionality.

Need more info? Read the official documentation on Namespacing.
 http://v2.wp-api.
org/extending/adding/#namespacing

### I want to create some custom API endpoints, where should I save them?

You should add your custom endpoints to the functions.php file in your current theme
directory.

### Can I use a regular PHP based Repeater Template with this add-on?

No, all Repeater Templates that are used with the REST API add-on must be coded 
as a JavaScript template.

### Are all Ajax Load More shortcode parameters available with the REST API add-on?

Yes! As long as you are using the default /wp-json/ajaxloadmore/posts endpoint all
values passed via shortcode will be parsed in your API call.

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«Ajax Load More: REST API» — проект с открытым исходным кодом. В развитие плагина
внесли свой вклад следующие участники:

Участники

 *   [ Darren Cooney ](https://profiles.wordpress.org/dcooney/)
 *   [ connekthq ](https://profiles.wordpress.org/connekthq/)

[Перевести «Ajax Load More: REST API» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/ajax-load-more-rest-api)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/ajax-load-more-rest-api/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/ajax-load-more-rest-api/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/ajax-load-more-rest-api/)
по [RSS](https://plugins.trac.wordpress.org/log/ajax-load-more-rest-api/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 1.2.6 — June 5, 2025

 * NEW: Adding Ajax Load More as a required plugin.
 * UPDATE: Code cleanup, readme and WP tested version.

#### 1.2.4 — November 11, 2024

 * UPDATE: Readme, contributors, WordPress tested version

#### 1.2.3 — February 23, 2023

 * FIX: Fixed up PHP warnign messages found in debug log for default endpoint.

#### 1.2.2 — December 30, 2022

 * FIX: Added fix for saving posts in editor when REST API shortcode in place.
 * UPDATE: Updated custo endpoint to rely on core ALM query params.
 * UPDATE: Code cleanup.

#### 1.2.1 — January 20, 2021

 * UPDATE — Updated REST API endpoint to include `permissions_callback` which is
   now required to remove PHP notices/warnings.

#### 1.2 — March 14, 2017

 * NOTICE — Moved extension to .org repo.
 * UPDATE — Removed REST API plugin Requirement if core WP 4.7 or greater is running.

#### 1.1 — September 5, 2016

 * MILESTONE — Must update core Ajax Load More to 2.12.0 when updating this add-
   on.
 * UPDATE — Updated endpoint + js function to hold new return data to match core
   ALM for posts and total posts

= 1.0 — June 5, 2016=
 * Initial Release.

## Мета

 *  Версия **1.2.6**
 *  Обновление: **1 год назад**
 *  Активных установок: **60+**
 *  Версия WordPress ** 4.0 или выше **
 *  Совместим вплоть до: **6.8.12**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/ajax-load-more-rest-api/)
 * Метки:
 * [ajax load more](https://ru.wordpress.org/plugins/tags/ajax-load-more/)[Endpoints](https://ru.wordpress.org/plugins/tags/endpoints/)
   [infinite scroll](https://ru.wordpress.org/plugins/tags/infinite-scroll/)[lazy load](https://ru.wordpress.org/plugins/tags/lazy-load/)
   [rest-api](https://ru.wordpress.org/plugins/tags/rest-api/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/ajax-load-more-rest-api/advanced/)

## Оценки

Пока что нет ни одного отзыва.

[Ваш отзыв](https://wordpress.org/support/plugin/ajax-load-more-rest-api/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/ajax-load-more-rest-api/reviews/)

## Участники

 *   [ Darren Cooney ](https://profiles.wordpress.org/dcooney/)
 *   [ connekthq ](https://profiles.wordpress.org/connekthq/)

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/ajax-load-more-rest-api/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](https://connekthq.com/donate/)