Automattic\WooCommerce\Internal\Admin\ProductReviews
Reviews::__construct()
Constructor.
{} Это метод класса: Reviews{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Reviews = new Reviews(); $Reviews->__construct();
Код Reviews::__construct() Reviews:: construct WC 6.8.0
public function __construct() { add_action( 'admin_menu', function() { $this->add_reviews_page(); } ); add_action( 'admin_enqueue_scripts', function() { $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', function() { $this->handle_edit_review(); }, -1 ); add_action( 'wp_ajax_replyto-comment', function() { $this->handle_reply_to_review(); }, -1 ); add_filter( 'parent_file', function( $parent_file ) { return $this->edit_review_parent_file( $parent_file ); } ); add_filter( 'gettext', function( $translation, $text ) { return $this->edit_comments_screen_text( $translation, $text ); }, 10, 2 ); add_action( 'admin_notices', function() { $this->display_notices(); } ); }