Automattic\WooCommerce\Internal\Admin\ProductReviews
Reviews::add_reviews_page()
Registers the Product Reviews submenu page.
Method of the class: Reviews{}
No Hooks.
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->add_reviews_page() : void;
Reviews::add_reviews_page() Reviews::add reviews page code WC 8.6.1
private function add_reviews_page() : void { $this->reviews_page_hook = add_submenu_page( 'edit.php?post_type=product', __( 'Reviews', 'woocommerce' ), __( 'Reviews', 'woocommerce' ) . $this->get_pending_count_bubble(), static::get_capability(), static::MENU_SLUG, [ $this, 'render_reviews_list_table' ] ); self::add_action( "load-{$this->reviews_page_hook}", array( $this, 'load_reviews_screen' ) ); }