Automattic\WooCommerce\Internal\Admin\ProductReviews
Reviews::__construct
Constructor.
Метод класса: Reviews{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$Reviews = new Reviews(); $Reviews->__construct();
Код Reviews::__construct() Reviews:: construct WC 10.3.5
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' ) );
}