WC_Admin_Exporters::__construct()
Constructor.
Метод класса: WC_Admin_Exporters{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Admin_Exporters = new WC_Admin_Exporters(); $WC_Admin_Exporters->__construct();
Код WC_Admin_Exporters::__construct() WC Admin Exporters:: construct WC 9.4.2
public function __construct() { if ( ! $this->export_allowed() ) { return; } add_action( 'admin_menu', array( $this, 'add_to_menus' ) ); add_action( 'admin_head', array( $this, 'hide_from_menus' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) ); add_action( 'admin_init', array( $this, 'download_export_file' ) ); add_action( 'wp_ajax_woocommerce_do_ajax_product_export', array( $this, 'do_ajax_product_export' ) ); // Register WooCommerce exporters. $this->exporters['product_exporter'] = array( 'menu' => 'edit.php?post_type=product', 'name' => __( 'Product Export', 'woocommerce' ), 'capability' => 'export', 'callback' => array( $this, 'product_exporter' ), ); }