我在WP日志中发现此错误,该如何解决?
与类同名的方法在将来的PHP版本中将不再是构造函数; Qapla_Woocommerce在...中已弃用构造函数。
行错误是:
Qapla_Woocommerce类{
代码是:
全球$ Qapla_Woocommerce; $ Qapla_Woocommerce =新的Qapla_Woocommerce();
Qapla_Woocommerce类{
var $version = '1.1.3';
function Qapla_Woocommerce() {
/* Languages */
add_action( 'plugins_loaded', array( &$this, 'load_plugin_textdomain' ) );
/* Meta box in admon order page */
add_action( 'add_meta_boxes', array( &$this, 'woocommerce_metaboxes' ) );
/* Send shipment to pushTrack API */
add_action( 'woocommerce_process_shop_order_meta', array( &$this, 'woocommerce_process_shop_ordermeta' ), 10, 3 );
/* Send order to pushOrder API */
add_action('woocommerce_order_status_changed', array( &$this, 'custom_process_order'));
/* Add a tracking section to customer order page */
add_action( 'woocommerce_order_details_after_order_table', array( &$this, 'track_page_shipping_details' ) );
/* Add a tracking section to transactional emails */
//add_action( 'woocommerce_email_after_order_table', array( &$this, 'email_shipping_details' ), 10, 3 );
/* Admin section */
add_action( 'admin_menu', array( &$this, 'qapla_admin_menu'));
add_action( 'admin_init', array( &$this, 'qapla_register_settings'));
/* Add a column to admin order list */
add_action( 'manage_edit-shop_order_columns', array( &$this, 'add_shipping_column'));
add_action( 'manage_shop_order_posts_custom_column', array( &$this, 'add_shipping_column_details'));
/* Update order from Qapla' */
add_action( 'init', array( &$this, 'qapla_update'));
}