Automattic\WooCommerce\Internal\Admin\ProductReviews

Reviews::__construct()publicWC 1.0

Constructor.

Метод класса: Reviews{}

No Hooks.

Return

null. Nothing.

Usage

$Reviews = new Reviews();
$Reviews->__construct();

Code of Reviews::__construct() WC 7.1.0

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_filter( 'gettext', [ $this, 'edit_comments_screen_text' ], 10, 2 );
	self::add_action( 'admin_notices', [ $this, 'display_notices' ] );
}