forked from SublimeProphets/fdb-algolia-woo-indexer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalgolia-woo-indexer.php
More file actions
53 lines (45 loc) · 1.36 KB
/
Copy pathalgolia-woo-indexer.php
File metadata and controls
53 lines (45 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Plugin Name: Algolia WooCommerce Indexer
* Description: Implement Algolia indexing from WooCommerce
* Text Domain: algolia-woo-indexer
* Author: Daniel Fjeldstad
* Requires at least: 6.0
* Tested up to: 6.1.1
* Requires PHP: 8.0
* WC requires at least: 7.0.0
* WC tested up to: 7.4.0
* Version: 1.0.5
*
* @package algolia-woo-indexer
* @license GNU version 3
*/
/**
* Abort if this file is called directly
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Class for checking plugin requirements
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-check-requirements.php';
/**
* Class for verifying nonces
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-verify-nonces.php';
/**
* Class for attributes
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-attributes.php';
/**
* Class for sending products and handling Algolia index interactions
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-send-products.php';
/**
* Main class file
*/
require_once plugin_dir_path( __FILE__ ) . '/classes/class-algolia-woo-indexer.php';
$algowooindexer = \Algowoo\Algolia_Woo_Indexer::get_instance();
register_activation_hook( __FILE__, array( $algowooindexer, 'activate_plugin' ) );
register_deactivation_hook( __FILE__, array( $algowooindexer, 'deactivate_plugin' ) );