w3bdesign /
algolia-woo-indexer
| 1 | <?php |
||||||
| 2 | /** |
||||||
| 3 | * Plugin Name: Algolia WooCommerce Indexer |
||||||
| 4 | * Description: Implement Algolia indexing from Woocommerce |
||||||
| 5 | * Text Domain: algolia-woo-indexer |
||||||
| 6 | * Author: Daniel F |
||||||
| 7 | * Requires at least: 5.5 |
||||||
| 8 | * Tested up to: 5.5 |
||||||
| 9 | * Requires PHP: 7.3 |
||||||
| 10 | * WC requires at least: 4.6.1 |
||||||
| 11 | * WC tested up to: 4.6.1 |
||||||
| 12 | * Version: 1.0.3 |
||||||
| 13 | * |
||||||
| 14 | * @package algolia-woo-indexer |
||||||
| 15 | * @license GNU version 3 |
||||||
| 16 | */ |
||||||
| 17 | |||||||
| 18 | /** |
||||||
| 19 | * Abort if this file is called directly |
||||||
| 20 | */ |
||||||
| 21 | if ( ! defined( 'ABSPATH' ) ) { |
||||||
| 22 | exit; |
||||||
| 23 | } |
||||||
| 24 | |||||||
| 25 | /** |
||||||
| 26 | * Main class file |
||||||
| 27 | */ |
||||||
| 28 | require_once plugin_dir_path( __FILE__ ) . '/classes/class-algolia-woo-indexer.php'; |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||
| 29 | |||||||
| 30 | /** |
||||||
| 31 | * Class for checking plugin requirements |
||||||
| 32 | */ |
||||||
| 33 | require_once plugin_dir_path( __FILE__ ) . '/classes/class-check-requirements.php'; |
||||||
| 34 | |||||||
| 35 | /** |
||||||
| 36 | * Class for verifying nonces |
||||||
| 37 | */ |
||||||
| 38 | require_once plugin_dir_path( __FILE__ ) . '/classes/class-verify-nonces.php'; |
||||||
| 39 | |||||||
| 40 | $algowooindexer = \Algowoo\Algolia_Woo_Indexer::get_instance(); |
||||||
| 41 | |||||||
| 42 | register_activation_hook( __FILE__, array( $algowooindexer, 'activate_plugin' ) ); |
||||||
|
0 ignored issues
–
show
The function
register_activation_hook was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 43 | register_deactivation_hook( __FILE__, array( $algowooindexer, 'deactivate_plugin' ) ); |
||||||
|
0 ignored issues
–
show
The function
register_deactivation_hook was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 44 |