Automattic\WooCommerce\Internal\Admin\ProductReviews
Reviews::__construct
Constructor.
Method of the class: Reviews{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Reviews = new Reviews(); $Reviews->__construct();
Reviews::__construct() Reviews:: construct code WC 10.8.1
public function __construct() {
add_action( 'admin_menu', array( $this, 'add_reviews_page' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'load_javascript' ) );
// These ajax callbacks need a low priority to ensure they run before their WordPress core counterparts.
add_action( 'wp_ajax_edit-comment', array( $this, 'handle_edit_review' ), -1 );
add_action( 'wp_ajax_replyto-comment', array( $this, 'handle_reply_to_review' ), -1 );
add_filter( 'parent_file', array( $this, 'edit_review_parent_file' ) );
add_action( 'admin_notices', array( $this, 'display_notices' ) );
}