4
4
* Plugin URI: https://connekthq.com/plugins/ajax-load-more/extensions/rest-api/
5
5
* Description: An Ajax Load More extension for infinite scrolling with the WordPress REST API
6
6
* Text Domain: ajax-load-more-rest-api
7
- * Author: Erick Danzer
7
+ * Author: Darren Cooney
8
8
* Author URI: https://connekthq.com
9
9
* Version: 1.2.4
10
10
* License: GPL
11
- * Copyright: Erick Danzer & AjaxWP LLC
11
+ * Copyright: Connekt Media & Darren Cooney
12
12
*
13
13
* @package ALMRESTAPI
14
14
*/
23
23
define ( 'ALM_RESTAPI_PATH ' , plugin_dir_path ( __FILE__ ) );
24
24
define ( 'ALM_RESTAPI_URL ' , plugins_url ( '' , __FILE__ ) );
25
25
define ( 'ALM_RESTAPI_VERSION ' , '1.2.4 ' );
26
- define ( 'ALM_RESTAPI_RELEASE ' , 'February 16, 2023 ' );
26
+ define ( 'ALM_RESTAPI_RELEASE ' , 'December 4, 2024 ' );
27
27
28
28
/**
29
29
* Activation hook
@@ -47,8 +47,7 @@ function alm_rest_api_install() {
47
47
* Display admin notice if plugin does not meet the requirements.
48
48
*/
49
49
function alm_restapi_admin_notice () {
50
- $ slug = 'ajax-load-more ' ;
51
- $ plugin = $ slug . '-rest-api ' ;
50
+ $ slug = 'ajax-load-more ' ;
52
51
// Ajax Load More Notice.
53
52
if ( get_transient ( 'alm_restapi_admin_notice ' ) ) {
54
53
$ install_url = get_admin_url () . '/update.php?action=install-plugin&plugin= ' . $ slug . '&_wpnonce= ' . wp_create_nonce ( 'install-plugin_ ' . $ slug );
@@ -73,11 +72,11 @@ class ALMRESTAPI {
73
72
* Set up construct functions.
74
73
*/
75
74
public function __construct () {
76
- add_action ( 'alm_rest_api_installed ' , array ( &$ this , 'alm_rest_api_installed ' ) );
77
- add_action ( 'alm_rest_api_settings ' , array ( &$ this , 'alm_rest_api_settings ' ) );
78
- add_action ( 'wp_enqueue_scripts ' , array ( &$ this , 'alm_rest_api_enqueue_scripts ' ) );
79
- add_action ( 'alm_get_rest_api_template ' , array ( &$ this , 'alm_get_rest_api_template ' ) , 10 , 2 );
80
- add_filter ( 'alm_rest_api_shortcode ' , array ( &$ this , 'alm_rest_api_shortcode ' ) , 10 , 6 );
75
+ add_action ( 'alm_rest_api_installed ' , [ &$ this , 'alm_rest_api_installed ' ] );
76
+ add_action ( 'alm_rest_api_settings ' , [ &$ this , 'alm_rest_api_settings ' ] );
77
+ add_action ( 'wp_enqueue_scripts ' , [ &$ this , 'alm_rest_api_enqueue_scripts ' ] );
78
+ add_action ( 'alm_get_rest_api_template ' , [ &$ this , 'alm_get_rest_api_template ' ] , 10 , 2 );
79
+ add_filter ( 'alm_rest_api_shortcode ' , [ &$ this , 'alm_rest_api_shortcode ' ] , 10 , 6 );
81
80
load_plugin_textdomain ( 'ajax-load-more-rest-api ' , false , dirname ( plugin_basename ( __FILE__ ) ) . '/lang/ ' );
82
81
require_once ALM_RESTAPI_PATH . 'endpoints.php ' ;
83
82
}
@@ -185,7 +184,6 @@ public function alm_rest_api_settings() {
185
184
'ajax-load-more ' ,
186
185
'alm_rest_api_settings '
187
186
);
188
-
189
187
}
190
188
}
191
189
0 commit comments