Skip to content

Commit 50a232d

Browse files
committed
Remove activation hooks
1 parent 0ce363e commit 50a232d

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

ajax-load-more-rest-api.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,6 @@
2626
define( 'ALM_RESTAPI_VERSION', '1.2.5' );
2727
define( 'ALM_RESTAPI_RELEASE', 'June 5, 2025' );
2828

29-
/**
30-
* Activation hook
31-
*
32-
* @since 1.0
33-
*/
34-
function alm_rest_api_install() {
35-
if ( ! is_plugin_active( 'ajax-load-more/ajax-load-more.php' ) ) {
36-
set_transient( 'alm_restapi_admin_notice', true, 5 );
37-
}
38-
39-
// If ! REST API plugin and WP Core < 4.7.
40-
global $wp_version;
41-
if ( ! is_plugin_active( 'rest-api/plugin.php' ) && ! version_compare( get_bloginfo( 'version' ), '4.7', '>=' ) ) {
42-
die( 'You must install and activate <a href="https://wordpress.org/plugins/rest-api/">WordPress REST API (Version 2)</a> OR be running WordPress 4.7+ before installing the Ajax Load More REST API extension.' );
43-
}
44-
}
45-
register_activation_hook( __FILE__, 'alm_rest_api_install' );
46-
4729
/**
4830
* Display admin notice if plugin does not meet the requirements.
4931
*/

0 commit comments

Comments
 (0)