Automattic\WooCommerce\Internal\Admin\ProductReviews
Reviews::__construct()
Constructor.
Метод класса: Reviews{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Reviews = new Reviews(); $Reviews->__construct();
Код Reviews::__construct() Reviews:: construct WC 9.2.3
public function __construct() { self::add_action( 'admin_menu', [ $this, 'add_reviews_page' ] ); self::add_action( 'admin_enqueue_scripts', [ $this, 'load_javascript' ] ); // These ajax callbacks need a low priority to ensure they run before their WordPress core counterparts. self::add_action( 'wp_ajax_edit-comment', [ $this, 'handle_edit_review' ], -1 ); self::add_action( 'wp_ajax_replyto-comment', [ $this, 'handle_reply_to_review' ], -1 ); self::add_filter( 'parent_file', [ $this, 'edit_review_parent_file' ] ); self::add_action( 'admin_notices', [ $this, 'display_notices' ] ); }