Файловый менеджер - Редактировать - /home/harasnat/www/horse/wp-content/plugins/product-share/product-share.php
Назад
<?php /** * Plugin Name: Social Share for WooCommerce * Plugin URI: https://wordpress.org/plugins/product-share/ * Description: Display social icons on the different spots of product pages to share your WooCommerce product on social media. * Author: WPXtension * Version: 1.2.19 * Domain Path: /languages * Requires at least: 5.5 * Tested up to: 6.8 * Requires PHP: 7.3 * WC requires at least: 5.5 * WC tested up to: 10.1.0 * Text Domain: product-share * Author URI: https://wpxtension.com * License: GPLv2 or later * License URI: http://www.gnu.org/licenses/gpl-2.0.html */ defined( 'ABSPATH' ) or die( 'Keep Silent' ); if ( ! defined( 'PRODUCT_SHARE_PLUGIN_FILE' ) ) { define( 'PRODUCT_SHARE_PLUGIN_FILE', __FILE__ ); } // Include the main class. if ( ! class_exists( 'Product_Share', false ) ) { require_once dirname( __FILE__ ) . '/includes/class-product-share.php'; } // Require woocommerce admin message function product_share_wc_requirement_notice() { if ( ! class_exists( 'WooCommerce' ) ) { printf( '<div class="%1$s"><p>%2$s <a class="thickbox open-plugin-details-modal" href="%3$s"><strong>%4$s</strong></a></p></div>', 'notice notice-error', wp_kses( __( "<strong>Social Share for WooCommerce</strong> is an add-on of ", 'product-share' ), array( 'strong' => array() ) ), esc_url( add_query_arg( array( 'tab' => 'plugin-information', 'plugin' => 'woocommerce', 'TB_iframe' => 'true', 'width' => '640', 'height' => '500', ), admin_url( 'plugin-install.php' ) ) ), esc_html__( 'WooCommerce', 'product-share' ) ); } } add_action( 'admin_notices', 'product_share_wc_requirement_notice' ); /** * Returns the main instance. */ function product_share() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid if ( ! class_exists( 'WooCommerce', false ) ) { return false; } if ( function_exists( 'product_share_pro' ) ) { return product_share_pro(); } return Product_Share::instance(); } add_action( 'plugins_loaded', 'product_share' ); // HPOS compatibility for Product Share function product_share_hpos_compatibility() { if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); } } add_action( 'before_woocommerce_init', 'product_share_hpos_compatibility' );
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка