-
Notifications
You must be signed in to change notification settings - Fork 1
/
woo-image-seo.php
28 lines (25 loc) · 954 Bytes
/
woo-image-seo.php
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
<?php
/*
Plugin Name: Woo Image SEO
Description: Improve your WooCommerce SEO! Automatically add alt tags and title attributes to product images using Woo Image SEO.
Version: 1.4.6
Plugin URI: https://wordpress.org/plugins/woo-image-seo/
Author: Danail Emandiev
Author URI: https://wooimageseo.com/
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: woo-image-seo
Domain Path: /i18n/languages/
Requires at least: 4.1
Tested up to: 6.7
WC requires at least: 4.0
WC tested up to: 9.4.1
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
require_once __DIR__ . '/lib/init.php';
// Declare compatibility with WooCommerce's HPOS feature.
add_action( 'before_woocommerce_init', function () {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
} );